private void CustomerCommand(object sender, RoutedEventArgs e) { ExMain.IsExpanded = false; UCSpace.Content = null; var item = new CustomerUCView(); UCSpace.Content = item; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.customerUCVM = ((QuanLyKho_MVVM.Views.CustomerUCView)(target)); return; case 2: this.FutureDatePicker = ((System.Windows.Controls.DatePicker)(target)); return; case 3: this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; } this._contentLoaded = true; }