Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your answer appears to be here:</p> <ul> <li><a href="https://stackoverflow.com/questions/2175587/how-to-change-wpf-listbox-listboxitem-datatemplate-for-selected-item-without-aff">How to change WPF Listbox/ListBoxItem DataTemplate for selected item WITHOUT affecting style &amp; theming?</a></li> </ul> <p>....you should use <code>ItemsContainerStyle</code> instead of just defining a replacement <code>ItemTemplate</code>...and define your <code>Style</code> using <code>BasedOn</code> to inherit the default style defined for your FrameworkElement element by the theme.</p> <p>There are also some other techniques you can use to leverage the default style defined by a theme (...just gives you extra options).</p> <ul> <li><a href="http://corneliutusnea.wordpress.com/2009/12/07/merging-wpfthemes-with-your-own-styles/" rel="nofollow noreferrer">http://corneliutusnea.wordpress.com/2009/12/07/merging-wpfthemes-with-your-own-styles/</a></li> </ul> <p>And yet another technique not covered above that uses a markup extension to merge together some styles (i.e. you could merge the default style and your style).</p> <ul> <li><p><a href="http://www.zagstudio.com/blog/384#.UDpfPqVum6M" rel="nofollow noreferrer">http://www.zagstudio.com/blog/384#.UDpfPqVum6M</a></p></li> <li><p><a href="https://stackoverflow.com/questions/5745001/xaml-combine-styles">XAML Combine Styles</a> </p></li> <li><p><a href="http://swdeveloper.wordpress.com/2009/01/03/wpf-xaml-multiple-style-inheritance-and-markup-extensions/" rel="nofollow noreferrer">http://swdeveloper.wordpress.com/2009/01/03/wpf-xaml-multiple-style-inheritance-and-markup-extensions/</a></p></li> </ul>
    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. 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