Example #1
0
 private void CurrentUserControl(NavigateMessage nm)
 {
     if (this.GetType() == nm.ViewModelType)
     {
         isCurrentView = true;
     }
     else
     {
         isCurrentView = false;
     }
 }
Example #2
0
        public void NavigateExecute()
        {
            if (View == null && ViewType != null)
            {
                View = (UserControl)Activator.CreateInstance(ViewType);
            }
            var msg = new NavigateMessage {
                View = View, ViewModelType = ViewModelType, ViewType = ViewType
            };

            Messenger.Default.Send <NavigateMessage>(msg);
        }
 private void ShowUserControl(NavigateMessage nm)
 {
     CommandTab.SelectedItem = EditTabItem;
     Holder.Content          = nm.View;
 }
Example #4
0
 private void ShowUserControl(NavigateMessage nm)
 {
     EditFrame.Content = nm.View;
 }