I’m trying style the TimePicker control that appears on the form so that the text colour changes accordingly to the phone’s style with a transparent background. For normal text, I just use:
Style="{StaticResource PhoneTextNormalStyle}"
However, this won’t work for the TimePicker and I get an error when I try to build the project.
Sorry for the severe lack of detail right now, I current don’t have access to my development box right now. When I get home I’ll post a screenshot of the control and the error.
The easy way to do this would be in Expression Blend. Open up the project in there, right-click on the control and select “Edit Style” -> “Edit a copy”. This will put a style element into the page.resources section that looks like the following snippet
and your control definition will look like this:
Of course, you can put this snippet in there yourself, and reference it in the same way in the control. It will all work the same way – Expression Blend just makes the process of doing it much simpler.
You should be able to manipulate that as you need to from there, probably changing the 2nd and 4th lines to
Hope that helps.