Ejemplo n.º 1
0
 public static void ShowWindow()
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title        = "属性",
         IconName     = "Icon_Property",
         Width        = 700,
         Height       = AppStatic.MainWindowHeight,
         CloseVisible = Visibility.Visible
     }, ucFactory: (window) => {
         var uc = new OuterProperty();
         return(uc);
     }, fixedSize: false);
 }
Ejemplo n.º 2
0
 public static void ShowWindow()
 {
     ContainerWindow.ShowWindow(new ContainerWindowViewModel {
         Title        = "属性",
         IconName     = "Icon_Property",
         Width        = 700,
         Height       = AppStatic.MainWindowHeight,
         CloseVisible = Visibility.Visible
     }, ucFactory: (window) => {
         var uc            = new OuterProperty();
         var vm            = (OuterPropertyViewModel)uc.DataContext;
         window.Activated += (object sender, System.EventArgs e) => {
             vm.OnPropertyChanged(nameof(vm.IsAutoAdminLogon));
         };
         return(uc);
     }, fixedSize: false);
 }