Exemple #1
0
        public StyledButton(Borders border, double opacity = 0)
        {
            BackgroundColor = Color.Transparent;
            TextColor       = Color.White;
            FontSize        = 18;
            Opacity         = opacity;
            FontFamily      = StyleHelpers.GetFontFamily();

            switch (border)
            {
            case Borders.None:
                break;

            case Borders.Thin:
                BorderRadius = 3;
                BorderColor  = Color.White;
                BorderWidth  = 1;
                break;
            }
        }
Exemple #2
0
        public StyledButton(Borders border, double opacity = 0)
        {
            BackgroundColor = Color.Transparent;
            TextColor       = Color.White;
            FontSize        = 18;
            Opacity         = opacity;
            FontFamily      = StyleHelpers.GetFontFamily();

            switch (border)
            {
            case Borders.None:
                break;

            case Borders.Thin:
                CornerRadius = 3;
                BorderColor  = Color.White;
                BorderWidth  = 1;
                break;

            default:
                throw new NotSupportedException();
            }
        }