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(); }
void UpdatePlaceholderColor() { BrushHelpers.UpdateColor(Element.PlaceholderColor, ref _defaultPlaceholderColorBrush, () => Control.PlaceholderForegroundBrush, brush => Control.PlaceholderForegroundBrush = brush); }