Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Excerpt:</p> <blockquote> <p>First, if you are not familiar with the concept of theme style vs explicit style I suggest you read this blog <a href="http://www.interact-sw.co.uk/iangblog/2007/02/14/wpfdefaulttemplate" rel="nofollow">http://www.interact-sw.co.uk/iangblog/2007/02/14/wpfdefaulttemplate</a>. All controls need a theme style (which is usually defined in files named Aero.NormalColor.xaml/Generic.xaml/etc under a folder named Themes) which defines their default look (Template)/properties and an optional explicit style (which is defined at the element/window/app level either with implicit key or explicit key).</p> <p>DefaultStyleKeyProperty defines the key used to find the theme style of the control. If you comment out the line, you will end up with the default theme style of the base class. As a quick test, change the base class of custom control to Button. If you comment out the line, your custom control will get the theme style of Button and it will look like a button. If you dont comment out the line, your custom control will get the default style defined in generic.xaml.</p> </blockquote> <p>From: <a href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/9df46c62-3715-4e16-8ef6-538068c28eb6/" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/9df46c62-3715-4e16-8ef6-538068c28eb6/</a></p> <p>Edit:</p> <p>Is there any reason why you don't want to define the header template and assign it?</p> <p>ex. <code>&lt;TabItem Header="Testing" HeaderTemplate="{StaticResource customHeaderTemplate}" /&gt;</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload