private void OpenVMPButton_Click(object sender, RoutedEventArgs e) { OpenPageDelegate deleg = OpenPage; MainFrame.Navigate(new OpenVMPView(deleg)); SetDefaultMenuStyle(); }
public OpenVMPView(OpenPageDelegate sender) { InitializeComponent(); deleg = sender; OpenVMPViewModel view = new OpenVMPViewModel(); this.DataContext = view; if (view.CloseAction == null) { view.CloseAction = new Action(this.CloseAct); } }