Example #1
0
 public WebViewCompatibilityAdapter()
 {
     _webView = new WebView();
 }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 16 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.BrowseBack_OnCanExecute);

            #line default
            #line hidden

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.BrowseBack_OnExecuted);

            #line default
            #line hidden
                return;

            case 2:

            #line 20 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.BrowseForward_CanExecute);

            #line default
            #line hidden

            #line 22 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.BrowseForward_OnExecuted);

            #line default
            #line hidden
                return;

            case 3:

            #line 24 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.GoToPage_CanExecute);

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.GoToPage_OnExecuted);

            #line default
            #line hidden
                return;

            case 4:
                this.Url = ((System.Windows.Controls.TextBox)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.Url.KeyUp += new System.Windows.Input.KeyEventHandler(this.Url_OnKeyUp);

            #line default
            #line hidden
                return;

            case 5:
                this.WebView1 = ((Microsoft.Toolkit.Wpf.UI.Controls.WebView)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.WebView1.ContainsFullScreenElementChanged += new System.EventHandler <object>(this.WebView1_OnContainsFullScreenElementChanged);

            #line default
            #line hidden

            #line 73 "..\..\MainWindow.xaml"
                this.WebView1.NavigationCompleted += new System.EventHandler <Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.WebViewControlNavigationCompletedEventArgs>(this.WebView1_OnNavigationCompleted);

            #line default
            #line hidden

            #line 74 "..\..\MainWindow.xaml"
                this.WebView1.NavigationStarting += new System.EventHandler <Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.WebViewControlNavigationStartingEventArgs>(this.WebView1_OnNavigationStarting);

            #line default
            #line hidden

            #line 75 "..\..\MainWindow.xaml"
                this.WebView1.PermissionRequested += new System.EventHandler <Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.WebViewControlPermissionRequestedEventArgs>(this.WebView1_OnPermissionRequested);

            #line default
            #line hidden

            #line 76 "..\..\MainWindow.xaml"
                this.WebView1.UnviewableContentIdentified += new System.EventHandler <Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.WebViewControlUnviewableContentIdentifiedEventArgs>(this.WebView1_UnviewableContentIdentified);

            #line default
            #line hidden

            #line 77 "..\..\MainWindow.xaml"
                this.WebView1.ScriptNotify += new System.EventHandler <Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.WebViewControlScriptNotifyEventArgs>(this.WebView1_OnScriptNotify);

            #line default
            #line hidden

            #line 78 "..\..\MainWindow.xaml"
                this.WebView1.FrameDOMContentLoaded += new System.EventHandler <Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.WebViewControlDOMContentLoadedEventArgs>(this.WebView1_FrameDOMContentLoaded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }