private void AssociatedObject_Loaded(object sender, RoutedEventArgs e)
        {
            ShellModelBase vm = this.AssociatedObject.DataContext as ShellModelBase;

            if (vm != null)
            {
                vm.LoginCommand.Execute();
            }
        }
Пример #2
0
 public ShellBase(ShellModelBase viewModel)
 {
     this.DataContext = viewModel;
 }