private NavigatetoSettings ( |
||
option | ||
return | void |
private void Button_Click(object sender, RoutedEventArgs e) { baba.NavigatetoSettings(typeof(Cities)); Color c; SolidColorBrush s; if (Context.Theme == ElementTheme.Dark) { var d = this.Resources.ThemeDictionaries["Dark"] as ResourceDictionary; c = (Color)d["SystemBaseHighColor"]; s = (SolidColorBrush)d["SystemControlForegroundBaseHighBrush"]; } else if (Context.Theme == ElementTheme.Light) { var d = this.Resources.ThemeDictionaries["Light"] as ResourceDictionary; c = (Color)d["SystemBaseHighColor"]; s = (SolidColorBrush)d["SystemControlForegroundBaseHighBrush"]; } else { c = (Color)Resources["SystemBaseHighColor"]; s = (SolidColorBrush)Resources["SystemControlForegroundBaseHighBrush"]; } baba.ChangeColor(Colors.Transparent, c, s); }
private void SettingsList_SelectionChanged(object sender, SelectionChangedEventArgs e) { baba.NavigatetoSettings((SettingsList.SelectedItem as SettingOption).Option); }