protected override void OnStyleChanged(UIStyle style) { base.OnStyleChanged(style); TextStyle.ValueFor(this).Update(PeerDropdown.captionText, DefaultTextStyle); Background.ValueFor(this).Update(PeerImage, DefaultBackground); ArrowImage.ValueFor(this).Update(PeerArrow, DefaultArrowImage); PeerScrollPanel.Background = PopupBackground.Merge(DefaultPopupBackground); PeerToggle.Checkbox = ItemBackground.Merge(DefaultItemBackgroundSet); PeerToggle.TextStyle = ItemTextStyle.Merge(DefaultItemTextStyleSet); }
protected override void OnStyleChanged(UIStyle style) { base.OnStyleChanged(style); TextStyle.ValueFor(this).Update(PeerText, DefaultTextStyle); PlaceholderTextStyle.ValueFor(this).Update(PeerPlaceholder, DefaultPlaceholderStyle); Background.ValueFor(this).Update(PeerBackground, DefaultBackground); PeerInput.selectionColor = SelectionColor.OrDefault(DefaultSelectionColor); PeerInput.caretColor = CaretColor.OrDefault(DefaultCaretColor); PeerInput.customCaretColor = CaretColor.HasValue || DefaultCaretColor != null && DefaultCaretColor.HasValue; }
protected override void OnStyleChanged(UIStyle style) { base.OnStyleChanged(style); Background.Update(PeerImage, DefaultBackground); }
protected override void OnStyleChanged(UIStyle style) { base.OnStyleChanged(style); TextStyle.Update(PeerText, DefaultTextStyle); }
protected virtual void OnStyleChanged(UIStyle style) { }