Пример #1
0
        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);
        }
Пример #2
0
        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;
        }
Пример #3
0
        protected override void OnStyleChanged(UIStyle style)
        {
            base.OnStyleChanged(style);

            Background.Update(PeerImage, DefaultBackground);
        }
Пример #4
0
        protected override void OnStyleChanged(UIStyle style)
        {
            base.OnStyleChanged(style);

            TextStyle.Update(PeerText, DefaultTextStyle);
        }
Пример #5
0
 protected virtual void OnStyleChanged(UIStyle style)
 {
 }