Exemplo n.º 1
0
 private async void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     window  = Window.GetWindow(this);
     context = this.DataContext as PanelWindowViewModel;
     if (window != null)
     {
         window.Closing += window_Closing;
         window.Closed  += WindowOnClosed;
         await AnimateIn();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public WindowModel()
 {
     BevelPanelContext = new PanelWindowViewModel();
 }