.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
Post a Comment