.
Hi guys,
Can we write our custom controls so that we can later partially re-dock it? So, without replacing the entire ControlTemplate , we want to change / override some of its appearance?
Of course, one way: copy the ControlTemplate code from generic.xaml, partially change its appearance and feel and use it in your xaml, as shown below:
<MyCustomControl> <MyCustomControl.Template> <ControlTemplate> </ControlTemplate> </MyCustomControl.Template> </MyCustomControl>
But the problem with this approach is that we make our xaml too verbose . And I really don't like it. I am looking for some solution that can save me from polluting the xaml environment, where I use my user control.
Thanks pending!
.
wpf silverlight xaml custom-controls controltemplate
Nawaz
source share