public CustomerView()
 {
     VM          = new CustomerViewModel(this);
     DataContext = VM;
     InitializeComponent();
     VM.InitAsync();
     Init(null);
 }
예제 #2
0
 private async void Page_Loaded(object sender, RoutedEventArgs e)
 {
   var dc = new CustomerViewModel();
   this.DataContext = dc;
   await dc.InitAsync();
 }