NavigatetoSettings() private method

private NavigatetoSettings ( Type option ) : void
option System.Type
return void
Example #1
0
        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);
        }
Example #2
0
 private void SettingsList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     baba.NavigatetoSettings((SettingsList.SelectedItem as SettingOption).Option);
 }