Ejemplo n.º 1
0
        public void SetChoiceStyle(ChoiceStyle choiceStyle)
        {
            this.choiceStyle = choiceStyle;

            ChoiceSelectButton.Background  = choiceStyle.SecondaryColor;
            ChoiceSelectButton.BorderBrush = choiceStyle.PrimaryColor;

            ChoiceLetterText.Foreground = choiceStyle.PrimaryColor;
        }
Ejemplo n.º 2
0
        public static List <ChoiceStyle> GetChoiceColors()
        {
            List <ChoiceStyle> choiceStyles = new List <ChoiceStyle>();

            //Color1
            ChoiceStyle color1 = new ChoiceStyle();

            color1.PrimaryColor   = new SolidColorBrush(Color.FromRgb(106, 206, 92));
            color1.SecondaryColor = new SolidColorBrush(Color.FromRgb(196, 255, 188));

            choiceStyles.Add(color1);

            //Color2
            ChoiceStyle color2 = new ChoiceStyle();

            color2.PrimaryColor   = new SolidColorBrush(Color.FromRgb(255, 0, 0));
            color2.SecondaryColor = new SolidColorBrush(Color.FromRgb(224, 176, 161));

            choiceStyles.Add(color2);

            //Color3
            ChoiceStyle color3 = new ChoiceStyle();

            color3.PrimaryColor   = new SolidColorBrush(Color.FromRgb(0, 47, 158));
            color3.SecondaryColor = new SolidColorBrush(Color.FromRgb(175, 199, 255));

            choiceStyles.Add(color3);

            //Color2
            ChoiceStyle color4 = new ChoiceStyle();

            color4.PrimaryColor   = new SolidColorBrush(Color.FromRgb(255, 0, 223));
            color4.SecondaryColor = new SolidColorBrush(Color.FromRgb(255, 181, 246));

            choiceStyles.Add(color4);

            return(choiceStyles);
        }