Hello,
In my application I'm using wrapped xamTabControl and TabItemEx ( inherited + some extra properties) with my own styles
The problem occurs when I'm using ItemTemplate with DataTemplate. ItemTemplate apply first default style and then on the top
of that is my style(its mixed). I bealive this happen because ItemControl type is by default TabItemEx not my control.
How I can change Item type of ItemsControl in xamTabcontrol so it will apply only my style with all my extra properties?
Hi and thank you for sharing your resolution.
I have verified it so that other community members can also benefit from it.
I already solved this.
I had to use
protected override DependencyObject GetContainerForItemOverride() { return new WvTabItemEx(); }in my wrapped class and after that Bind all properties in ItemContainerStyle(new style BasedOn my style) instead of ItemTemplate