protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e) { SelectButtonAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as SelectButtonAttributes; if (tempAttributes != null) { attributes = selectButtonAttributes = tempAttributes; RelayoutRequest(); } }
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; } }
public CheckBox(SelectButtonAttributes attrs) : base(attrs) { }
public SelectButton(SelectButtonAttributes attributes) : base(attributes) { Initialize(); }
public RadioButton(SelectButtonAttributes attrs) : base(attrs) { }