Interaction logic for Window1.xaml
Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((FluentTest.TestWindow)(target));
                return;

            case 2:
                this.TestContent = ((FluentTest.TestContent)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private void OnMenuItemClick(object sender, RoutedEventArgs e)
 {
     var wnd = new TestWindow
     {
         Owner = Window.GetWindow(this)
     };
     wnd.Show();
 }
 private void OnMenuItemClick(object sender, RoutedEventArgs e)
 {
     TestWindow wnd = new TestWindow();
     wnd.Owner = this;
     wnd.Show();
 }
 private void OnLauncherButtonClick(object sender, RoutedEventArgs e)
 {
     MessageBox.Show(this,"Launcher button pressed!!!");
     TestWindow wnd = new TestWindow();
     wnd.Show();
 }