WPF Themes and Controls

Mar 23, 2009 at 2:49 PM
Is there a list that shows the controls that work with the new WPF Themes?  I noticed TextBlock does not work.
Coordinator
Mar 23, 2009 at 6:02 PM
Edited Mar 23, 2009 at 6:04 PM
If you open the xaml of one of the themes, all of the controls which they are designed to work with are called out in comments (like <!-- Button -->).  Here's a list:

Button
ToggleButton
CheckBox
RadioButton
Expander
TextBox
PasswordBox
RichTextBox
Thumb
Slider
ScrollBar
ScrollViewer
FlowDocumentScrollViewer
ListBox
ListBoxItem
TabControl
TabItem
ComboBox
ComboBoxItem
Menu
MenuItem
Toolbar
ToolTip
ProgressBar
TreeView
TreeViewItem

It should be pretty easy to extend any of these themes for TextBlock - you just need to create a style which uses the same FontFamily, FontSize, and Foreground (or whatever other properties you want to apply) as the other controls in the theme.