Interaction logic for Settings.xaml
Inheritance: SidebarDiagnostics.Windows.DPIAwareWindow
 private void SettingsMenuItem_Click(object sender, RoutedEventArgs e)
 {
     Settings _settings = new Settings();
     _settings.Owner = Application.Current.Windows.OfType<AppBar>().First();
     _settings.ShowDialog();
 }
 private void SettingsButton_Click(object sender, RoutedEventArgs e)
 {
     Settings _settings = new Settings();
     _settings.Owner = this;
     _settings.ShowDialog();
 }
        private void SettingsButton_Click(object sender, RoutedEventArgs e)
        {
            Settings _settings = new Settings();
            _settings.Owner = this;

            Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, (Action)(() =>
            {
                _settings.ShowDialog();
            }));
        }
Example #4
0
        private void Settings_Click(object sender, EventArgs e)
        {
            AppBar _appBar = GetAppBar;

            if (_appBar == null)
                return;

            Settings _settings = new Settings();
            _settings.Owner = _appBar;
            _settings.ShowDialog();
        }