Beispiel #1
0
        public static void ShowWizard(WizardBase wizard, double width = 800, double height = 800, bool DoNotShowAsDialog = false)
        {
            WizardWindow wizardWindow = new WizardWindow(wizard);

            wizardWindow.Dispatcher.Invoke(() =>
            {
                wizardWindow.Width  = width;
                wizardWindow.Height = height;
                if (!wizard.IsNavigationListEnabled)
                {
                    SetterBaseCollection sbc = wizardWindow.NavigationList.ItemContainerStyle.Setters;
                    sbc.Add(new Setter(ListBoxItem.IsEnabledProperty, wizard.IsNavigationListEnabled));
                    ((System.Windows.Setter)sbc[sbc.Count - 1]).Value = wizard.IsNavigationListEnabled;
                }
                if (DoNotShowAsDialog)
                {
                    wizardWindow.Owner = App.MainWindow;//adding owner so it will come on top
                    wizardWindow.Show();
                }
                else
                {
                    wizardWindow.ShowDialog();
                }
            });
        }
Beispiel #2
0
        public static void ShowWizard(WizardBase wizard, double width = 800, bool DoNotShowAsDialog = false)
        {
            WizardWindow wizardWindow = new WizardWindow(wizard);

            wizardWindow.Width = width;

            if (DoNotShowAsDialog)
            {
                wizardWindow.Owner = App.MainWindow;//adding owner so it will come on top
                wizardWindow.Show();
            }
            else
            {
                wizardWindow.ShowDialog();
            }
        }
Beispiel #3
0
        public static void ShowWizard(WizardBase wizard, double width = 800, bool DoNotShowAsDialog = false)
        {
            WizardWindow wizardWindow = new WizardWindow(wizard);

            wizardWindow.Width = width;

            if (DoNotShowAsDialog)
            {
                wizardWindow.Topmost = true;
                wizardWindow.Show();
            }
            else
            {
                wizardWindow.ShowDialog();
            }
        }