Пример #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();
            }
        }
Пример #2
0
        private void Initialize()
        {
            selectButtonAttributes = attributes as SelectButtonAttributes;
            if (selectButtonAttributes == null)
            {
                throw new Exception("SelectButton attribute parse error.");
            }

            selectButtonAttributes.IsSelectable = true;
            LayoutDirectionChanged += SelectButtonLayoutDirectionChanged;
        }
Пример #3
0
        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;
            }
        }
Пример #4
0
 public SelectButton(SelectButtonAttributes attributes) : base(attributes)
 {
     Initialize();
 }
Пример #5
0

        
Пример #6
0
 public RadioButton(SelectButtonAttributes attrs) : base(attrs)
 {
 }