예제 #1
0
        public BlankPage2()
        {
            this.InitializeComponent();

            this.webView.Source = new Uri("ms-appx-web:///Resources/HTMLPage1.html");

            ((Frame)Window.Current.Content).KeyUp += BlankPage2_KeyUp;

            gridManager = new GridManager();
            this.webView.NavigationCompleted += WebView_NavigationCompleted;
            this.webView.LoadCompleted += WebView_LoadCompleted;
        }
예제 #2
0
        public MyUserControl4()
        {
            this.InitializeComponent();
            //Task.Factory.StartNew(() =>
            //{
            //    AutoResetEvent shedule = new AutoResetEvent(false);
            //    shedule.WaitOne(TimeSpan.FromSeconds(2));
            //    CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(
            //Windows.UI.Core.CoreDispatcherPriority.Normal,
            //        () =>
            //        {
            //            gridManager = new GridManager(this.playGrid.ColumnDefinitions, this.playGrid.RowDefinitions, this.playGrid);
            //            gridManager.Move(7, 13);
            //        });

            //});
            gridManager = new GridManager(this.playGrid.ColumnDefinitions, this.playGrid.RowDefinitions, this.playGrid);
            gridManager.Move(6, 12);

            ((Frame)Window.Current.Content).KeyUp += MyUserControl4_KeyUp;
        }