I'm having a hard time trying to style myself out of the problem specified in the title. Has anyone here done that?
When the DatePicker
control is disabled the font on the DatePickerTextBox
is gray and hard to read. I'm changing to change that.
Regards, Fredrik.
The enabled-ness of a
DatePicker
is controlled using a semi-opaque overlay in its control template calledPART_DisabledVisual
. Your only real option is to re-style the wholeDatePicker
ControlTemplate
using Expression Blend or ShowMeTheTemplate or MSDN and change these lines:to this:
which will stop the overlay from graying out the
TextBox
. What to do instead when disabled, if anything, is then up to you.