Exemplo n.º 1
0
 private void LaunchFlyoutDemo(object sender, RoutedEventArgs e)
 {
     if (flyoutDemo == null)
     {
         flyoutDemo         = new FlyoutDemo();
         flyoutDemo.Closed += (o, args) => flyoutDemo = null;
     }
     flyoutDemo.Launch();
 }
Exemplo n.º 2
0
        public MainWindow()
        {
            _viewModel  = new MainWindowViewModel(DialogCoordinator.Instance);
            DataContext = _viewModel;

            InitializeComponent();

            flyoutDemo = new FlyoutDemo();
            flyoutDemo.ApplyTemplate();
            flyoutDemo.Closed += (o, e) => flyoutDemo = null;
        }
Exemplo n.º 3
0
 public MainWindow()
 {
     _viewModel  = new MainWindowViewModel();
     DataContext = _viewModel;
     InitializeComponent();
     flyoutDemo         = new FlyoutDemo();
     flyoutDemo.Closed += (o, args) => flyoutDemo = null;
     Closing           += (s, e) =>
     {
         if (!e.Cancel && flyoutDemo != null)
         {
             flyoutDemo.Dispose();
         }
     };
 }
Exemplo n.º 4
0
        public MainWindow()
        {
            _viewModel  = new MainWindowViewModel(DialogCoordinator.Instance);
            DataContext = _viewModel;

            InitializeComponent();

            flyoutDemo = new FlyoutDemo();
            flyoutDemo.ApplyTemplate();
            flyoutDemo.Closed += (o, e) => flyoutDemo = null;

            Closing += (s, e) =>
            {
                if (!e.Cancel && flyoutDemo != null)
                {
                    flyoutDemo.Dispose();
                }
            };
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.flyoutsDemo = ((MetroDemo.FlyoutDemo)(target));
     return;
     case 2:
     this.settingsFlyout = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 3:
     this.flyoutSettingsComboboxDownloadlanguage = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 4:
     this.flyoutSettingsButtonSave = ((System.Windows.Controls.Button)(target));
     return;
     case 5:
     
     #line 207 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowFirst);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 211 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSecond);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 215 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowThird);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 219 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAccent);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 223 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowInverse);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 227 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAdapt);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 231 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSettings);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 235 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowModal);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 239 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseMe);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 248 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowTop);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 252 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowBottom);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 259 "..\..\..\FlyoutDemo.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowLeft);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }