Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Win2 = ((VoorbeeldWindowsWPF.Window2)(target));
                return;

            case 2:
                this.BtnShowHide = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\0 Window2.xaml"
                this.BtnShowHide.Click += new System.Windows.RoutedEventHandler(this.BtnShowHide_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.BtnShowDialogHide = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\0 Window2.xaml"
                this.BtnShowDialogHide.Click += new System.Windows.RoutedEventHandler(this.BtnShowDialogHide_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        private void BtnShowDialog_Click(object sender, RoutedEventArgs e)
        {
            Window2 w2 = new Window2();

            w2.ShowDialog();
        }