.net 3.5 - Reusing existing templates in custom WPF controls -


i creating custom wpf control class inherits combobox. defining behavior, exiting combobox templates fine purposes , don't want created whole set of templates support different themes. there way specify control uses existing combobox templates?

give control default style , set basedon default style of combobox:

<style targettype="{x:type local:customcontrol1}"        basedon="{staticresource {x:type combobox}}"> </style> 

this inherit template setter combobox default style.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -