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

            Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, (Action)(() =>
            {
                _settings.ShowDialog();
            }));
        }
コード例 #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();
        }