Example #1
0
        protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
        {
            SelectButtonAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as SelectButtonAttributes;

            if (tempAttributes != null)
            {
                attributes = selectButtonAttributes = tempAttributes;
                RelayoutRequest();
            }
        }
Example #2
0
        private void Initialize()
        {
            selectButtonAttributes = attributes as SelectButtonAttributes;
            if (selectButtonAttributes == null)
            {
                throw new Exception("SelectButton attribute parse error.");
            }

            selectButtonAttributes.IsSelectable = true;
            LayoutDirectionChanged += SelectButtonLayoutDirectionChanged;
        }
        public SelectButtonAttributes(SelectButtonAttributes attributes) : base(attributes)
        {
            if (attributes == null)
            {
                return;
            }
            if (attributes.CheckImageAttributes != null)
            {
                CheckImageAttributes = attributes.CheckImageAttributes.Clone() as ImageAttributes;
            }

            if (attributes.CheckBackgroundImageAttributes != null)
            {
                CheckBackgroundImageAttributes = attributes.CheckBackgroundImageAttributes.Clone() as ImageAttributes;
            }

            if (attributes.CheckShadowImageAttributes != null)
            {
                CheckShadowImageAttributes = attributes.CheckShadowImageAttributes.Clone() as ImageAttributes;
            }
        }
Example #4
0
 public CheckBox(SelectButtonAttributes attrs) : base(attrs)
 {
 }
Example #5
0
 public SelectButton(SelectButtonAttributes attributes) : base(attributes)
 {
     Initialize();
 }
Example #6
0
 public RadioButton(SelectButtonAttributes attrs) : base(attrs)
 {
 }