Skip to content

How to reference current item when style is applied #6431

Answered by batzen
sam-wheat asked this question in Q&A
Discussion options

You must be logged in to vote

You have to bind to RelativeSource=Self instead of ".". "." references to the current DataContext instead of an UI element.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sam-wheat
Comment options

Answer selected by sam-wheat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants