Пример #1
0
        void UpdateTextColor()
        {
            BrushHelpers.UpdateColor(Element.TextColor, ref _defaultTextColorBrush,
                                     () => Control.Foreground, brush => Control.Foreground = brush);

            // Force the PhoneTextBox control to do some internal bookkeeping
            // so the colors change immediately and remain changed when the control gets focus
            Control.OnApplyTemplate();
        }
Пример #2
0
 void UpdatePlaceholderColor()
 {
     BrushHelpers.UpdateColor(Element.PlaceholderColor, ref _defaultPlaceholderColorBrush,
                              () => Control.PlaceholderForegroundBrush, brush => Control.PlaceholderForegroundBrush = brush);
 }