NavigatetoSettings() 개인적인 메소드

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