private void butSwapChainPanel_Click(object sender, RoutedEventArgs e) { // Place the frame in the current Window and ensure that it is active var swapchainPanel = new MPSCBP(); Window.Current.Content = swapchainPanel; Window.Current.Activate(); }
private void butSwapChainBackgroundPanel_Click(object sender, RoutedEventArgs e) { // Place the frame in the current Window and ensure that it is active var swapchainPanel = new MPSCBP(); Window.Current.Content = swapchainPanel; Window.Current.Activate(); }