예제 #1
0
        protected override void UpdateThemeStyle()
        {
            var style = Specific.GetStyle(Element);

            if (string.IsNullOrEmpty(style))
            {
                return;
            }
            switch (style)
            {
            case SwitchStyle.Toggle:
            case SwitchStyle.Favorite:
            case SwitchStyle.CheckBox:
                Control.Style = style;
                break;

            default:
                Control.Style = SwitchStyle.Toggle;
                break;
            }
            ((IVisualElementController)Element).NativeSizeChanged();
        }