private void rightModelessButton_Click(object sender, EventArgs e) { var wpfWindow = new SimpleWindow(); ElementHost.EnableModelessKeyboardInterop(wpfWindow); wpfWindow.Show(); }
private void OpenSaleButton_Click(object sender, RoutedEventArgs e) { SimpleWindow simpleWindow = new SimpleWindow(); Sale vente = (Sale)SaleDataGrid.SelectedItem; simpleWindow.Content = new PopupWindow(vente); simpleWindow.Show(); //Page pg = GetDependencyObjectFromVisualTree(this, typeof(Page)) as Page; //Sale vente = (Sale)SaleDataGrid.SelectedItem; //pg.NavigationService.Navigate(new PopupWindow(vente)); }
private void Application_Startup(object sender, StartupEventArgs e) { CreateMenu(); LoadIcon(); simpleWindow = new SimpleWindow(); Task.Run(() => { if (!Ns.Start()) { MessageBox.Show(@"Startup Failed", @"Error", MessageBoxButton.OK, MessageBoxImage.Error); Exit(false); } Current.Dispatcher.Invoke(() => { simpleWindow.Show(); }); }); }
private void btnSimpleWindow_Click(object sender, EventArgs e) { var window = new SimpleWindow(); window.Show(); }
public static void Init() { SimpleWindow window = GetWindow <SimpleWindow>(false, "Simple Window", true); window.Show(); }
private void wrongModelessWpfButton_Click(object sender, EventArgs e) { var wpfWindow = new SimpleWindow(); wpfWindow.Show(); }