Hi all,
I tried to create a custom tabitem on Silverlight, but when i run it, it's complaining Unable to cast CustomTab to TabItem.
I am not sure how to fix that, any idea?
Thanks alot
Hi all,
I tried to create a custom tabitem on Silverlight, but when i run it, it's complaining Unable to cast CustomTab to TabItem.
I am not sure how to fix that, any idea?
Thanks alot
Your custom tab item should inherit TabItem. You can simply create a class that inherits TabItem and extend its functionality, but if you'd like to create your own custom styles for the new control as well, you can make it a "Templated Control". This will allow you to inherit TabItem, and define a default control template using Generic.xaml.