private void UnitCommand(object sender, RoutedEventArgs e) { ExMain.IsExpanded = false; UCSpace.Content = null; var item = new UnitUCView(); UCSpace.Content = item; //if ((item.DataContext as UnitUCViewModel).IsLoaded) DialogHost.CloseDialogCommand.Execute(null, null); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UnitUCVM = ((QuanLyKho_MVVM.Views.UnitUCView)(target)); return; case 2: this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.UnitUCVM = ((QuanLyKho_MVVM.Views.UnitUCView)(target)); #line 12 "..\..\..\Views\UnitUCView.xaml" this.UnitUCVM.Loaded += new System.Windows.RoutedEventHandler(this.UnitUCVM_Loaded); #line default #line hidden return; case 2: this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; } this._contentLoaded = true; }