WindowsXamlHost control hosts UWP XAML content inside the Windows Presentation Foundation
Inheritance: Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHostBase
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.myUwpButton = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));
         return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.myUwpButton = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((LauncherX.MainWindow)(target));

            #line 10 "..\..\..\MainWindow.xaml"
                this.window.Closing += new System.ComponentModel.CancelEventHandler(this.window_Closing);

            #line default
            #line hidden

            #line 10 "..\..\..\MainWindow.xaml"
                this.window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.window_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.Container = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.grid = ((System.Windows.Controls.Grid)(target));

            #line 13 "..\..\..\MainWindow.xaml"
                this.grid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.grid_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.OpenFileHost = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));

            #line 15 "..\..\..\MainWindow.xaml"
                this.OpenFileHost.ChildChanged += new System.EventHandler(this.OpenFileHost_ChildChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.header = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.gridviewhost = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));

            #line 17 "..\..\..\MainWindow.xaml"
                this.gridviewhost.ChildChanged += new System.EventHandler(this.gridviewhost_ChildChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.SettingsButton = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\..\MainWindow.xaml"
                this.SettingsButton.Click += new System.Windows.RoutedEventHandler(this.SettingsButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.OpenFolderHost = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));

            #line 19 "..\..\..\MainWindow.xaml"
                this.OpenFolderHost.ChildChanged += new System.EventHandler(this.OpenFolderHost_ChildChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.empty = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.OpenWebsiteHost = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));

            #line 27 "..\..\..\MainWindow.xaml"
                this.OpenWebsiteHost.ChildChanged += new System.EventHandler(this.OpenWebsiteHost_ChildChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.SearchHost = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));

            #line 31 "..\..\..\MainWindow.xaml"
                this.SearchHost.ChildChanged += new System.EventHandler(this.SearchHost_ChildChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.TitleBar = ((System.Windows.Controls.Grid)(target));

            #line 33 "..\..\..\MainWindow.xaml"
                this.TitleBar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TitleBar_MouseDown);

            #line default
            #line hidden
                return;

            case 16:
                this.CloseButton = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\..\MainWindow.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.MaximizeButton = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\MainWindow.xaml"
                this.MaximizeButton.Click += new System.Windows.RoutedEventHandler(this.MaximizeButton_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.MinimiseButton = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\..\MainWindow.xaml"
                this.MinimiseButton.Click += new System.Windows.RoutedEventHandler(this.MinimiseButton_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.TitleBarText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.TitleBarIcon = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\SettingsWindow.xaml"
                ((LauncherX.SettingsWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AcrylicWindow_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.AboutHeader = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.scalescrollhost = ((Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHost)(target));

            #line 16 "..\..\..\SettingsWindow.xaml"
                this.scalescrollhost.ChildChanged += new System.EventHandler(this.scalescrollhost_ChildChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.changeScaleTextHeader = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.CloseButton = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\..\SettingsWindow.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.changeHeaderTextHeader = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.changeHeaderTextTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 20 "..\..\..\SettingsWindow.xaml"
                this.changeHeaderTextTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.changeHeaderTextTextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.textBlock3 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.LogoContainer = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.textBlock4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.textBlock5 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.VisitGithub = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\..\SettingsWindow.xaml"
                this.VisitGithub.Click += new System.Windows.RoutedEventHandler(this.VisitGithub_Click);

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