Exemplo n.º 1
0
        private void StyleButton_Click(object sender, RoutedEventArgs e)
        {
            SoundManager.PlayClickSound();

            var clickedButton = sender as Button;
            var id            = (string)clickedButton.GetValue(UidProperty);

            var color = ThemeManager.BlueColor;

            if (id == "Red")
            {
                color = ThemeManager.RedColor;
            }
            if (id == "Green")
            {
                color = ThemeManager.GreenColor;
            }

            ThemeManager.ApplyPrimary(color.Primary, color.Secondary);
            ThemeManager.ApplyAccent(color.Accent);
        }