Example #1
0
        public void AddOverlay(OverlayViewModelBase overlayView)
        {
            if (stack.Keys.Contains(overlayView))
            {
                return;
            }

            OverlayLayer layer = new OverlayLayer(overlayView);

            stack.Add(overlayView, layer);
            main.Children.Add(layer);
        }
 public CloseCommand(OverlayViewModelBase vm)
 {
     this.vm = vm;
 }
Example #3
0
 public void CloseOverlay(OverlayViewModelBase overlayView)
 {
     main.Children.Remove(stack[overlayView]);
     stack.Remove(overlayView);
 }
Example #4
0
 public OverlayLayer(OverlayViewModelBase viewModel)
 {
     InitializeComponent();
     this.DataContext = viewModel;
 }
Example #5
0
 public static void Hide(OverlayViewModelBase overlayView)
 {
     overlayHolder.CloseOverlay(overlayView);
 }
Example #6
0
 public static void Add(OverlayViewModelBase overlayView)
 {
     overlayHolder.AddOverlay(overlayView);
 }