Microsoft
Software
Hardware
Network
Question : Styling WPF TabItem with Image and Text
Ok.... I have a tabcontrol with some tabitems... The controls are styled using a separate resource file. And thus far everything looked great.
My TabItems have three different states. Default, Hover and Selected. The default background color is dark and the selected tab's background is light. Therefore, the default tab's foreground color is white and the selected tab's foreground color is lets say black.
In my style I set the foreground color using the IsSelected Trigger.
However.... I want to add icons to my tabs. To do this inside the header I create a stackpanel with an image and a textbox as children.
Now my foreground color of the textbox will not be set by the style nor the trigger within the style. I can see why this is happening but have no clue on how to fix it.
Relevant Style:
Relevant Xaml:
blah
>
Answer : Styling WPF TabItem with Image and Text
Sorry for the late reply. Got a solution to your problem
just change your code for the IsSelected=true Trigger to this
1: 2: 3: 4:
Open in New Window
Select All
Random Solutions
Computer Freezes when entering standby and hibernate
changing AD login names
Argument not specified for parameter 'sender' of 'Protected Sub EmailRegAttendeeNotices_Cl<wbr />ick(sender<wbr /> As Object, e As System.EventArgs)'.
I want the richtextbox scroll stick to the buttom instead of the top. How?
Insert pictures into Meeting Request
DNS records for TLS in OCS 2007 R2
How do I determine if a server is or was a DC
Visual basic: how to use the Mouse wheel on and off (lebans software):
How do I reduce the memory iexplore.exe is using, as it can get as high as 260,000k
Deploy a change in registry in a terminal server farm