public void ChangeFrameSourceCommand_Executed(object obj) { string pageName = obj.ToString(); switch (pageName) { case "PageMain": FrameSource = new VM_PageMain().UIElement as Page; break; case "PageUser": FrameSource = new VM_PageUser().UIElement as Page; break; } }
public void ChangeFrameSourceCommand_Executed(object obj) { string pageName = obj.ToString(); switch (pageName) { case "PageMain": FrameSource = new VM_PageMain().UIElement as Page; break; case "PageUser": FrameSource = new VM_PageUser().UIElement as Page; break; case "PageTextBox": FrameSource = new VM_PageTextBox().UIElement as Page; break; case "PageCheckBox": FrameSource = new VM_PageCheckBox().UIElement as Page; break; case "PageComboBox": FrameSource = new VM_PageComboBox().UIElement as Page; break; case "PageDataGrid": FrameSource = new VM_PageDataGrid().UIElement as Page; break; case "PageDataGridMid": FrameSource = new VM_PageDataGridMid().UIElement as Page; break; case "PageDataGridAdvanced": FrameSource = new VM_PageDataGridAdvanced().UIElement as Page; break; case "PageUserList": FrameSource = new VM_PageUserList().UIElement as Page; break; } }
public VM_WindowMain() { Logger.Info("Start"); FrameSource = new VM_PageMain().UIElement as Page; }