Posted
Edit: My dumbass said TabControl, i meant TabItem
I am trying to add an close tab button to my TabItem. I tried some tutorials and they worked fine but i want to apply an style to the TabItem in C#. I tried
Style style = Application.Current.FindResource("tabItemStyle") as Style;
But it gave me an Error saying it can't find the Style. How do I get it to work?
Learning C++, C#, JavaScript Developer
I develop random stuff
Discord: Unidentified#1091
Replied
this.Style = Resources["ResourceName"] as Style;
make sure that capitalization is correct and that the resource is accessible ofc.
Cancel
Post
a mysterious creature from the past
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post