Beispiel #1
0
        private void OpenAboutWindow()
        {
            AboutWindow aboutWindow = new AboutWindow();

            aboutWindow.ShowDialog();
            aboutWindow.Activate();
            aboutWindow.Focus();
            aboutWindow.Topmost = true;
        }
Beispiel #2
0
        private void ShowAboutWindow()
        {
            if (aboutWindow != null)
            {
                aboutWindow.Focus();
                return;
            }

            aboutWindow         = new AboutWindow();
            aboutWindow.Closed += (s, e) => aboutWindow = null;
            aboutWindow.ShowDialog();
        }
Beispiel #3
0
        void DynamoViewModelRequestAboutWindow(DynamoViewModel model)
        {
            if (_aboutWindow == null)
            {
                _aboutWindow = new AboutWindow(model)
                {
                    Owner = this,
                    WindowStartupLocation = WindowStartupLocation.CenterOwner
                };
                _aboutWindow.Closed += (sender, args) => _aboutWindow = null;
                _aboutWindow.Show();

                if (_aboutWindow.IsLoaded && IsLoaded)
                {
                    _aboutWindow.Owner = this;
                }
            }

            _aboutWindow.Focus();
        }