Skip to content

MenuItem:pointerover setting foreground color #17037

Answered by TangDave
TangDave asked this question in Q&A
Discussion options

You must be logged in to vote

Found the answer in the MenuItem.xaml file:

<Style Selector="MenuItem.MainMenuHeader">
	<Setter Property="Foreground" Value="{DynamicResource MainMenuHeaderForeColor}"/>

	<Style Selector="^:pointerover /template/ ContentPresenter#PART_HeaderPresenter">
		<Setter Property="Foreground" Value="{DynamicResource MainMenuHeaderHoverForeColor}"/>
	</Style>
</Style>

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by TangDave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant