Exemplo n.º 1
0
 public ViewAndViewModel(
     Window view,
     OverlayViewModelBase viewModel)
 {
     this.View      = view;
     this.ViewModel = viewModel;
 }
Exemplo n.º 2
0
 protected void TryAddViewAndViewModel(
     Window window,
     OverlayViewModelBase vm)
 {
     if (window != null && vm != null)
     {
         this.ViewList.Add(new ViewAndViewModel(window, vm));
     }
 }
Exemplo n.º 3
0
 protected void CreateView <T>(ref T view, OverlayViewModelBase vm)
     where T : Window, new()
 {
     if (vm != null)
     {
         view = new T()
         {
             DataContext = vm
         };
         vm.View = view;
     }
 }
Exemplo n.º 4
0
 public void ShowOverlay(OverlayViewModelBase overlay)
 {
     Overlay.ActivateItem(overlay);
 }
Exemplo n.º 5
0
 public void ShowOverlay(OverlayViewModelBase overlay)
 {
     ParentShell.CloseOverlay();
     Overlay.ActivateItem(overlay);
 }