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