Is there a way to put Setter elements inside EventTrigger?
Posted
by Dennis Delimarsky
on Stack Overflow
See other posts from Stack Overflow
or by Dennis Delimarsky
Published on 2010-05-09T14:22:43Z
Indexed on
2010/05/09
14:28 UTC
Read the original article
Hit count: 307
Working on a WPF application, I started working on a custom ControlTemplate. I reached the point where I need to change some control properties when an event occurs.
For this purpose, there are Setter elements. Seems all good, but I cannot use them inside EventTrigger elements. For example, if a simple Trigger, that can be bound to control properties, is used then Setter elements can be used inside. However, I do not want to bind to a property change but rather to an event.
Is there a way to do this in pure XAML or will I have to work in the code-behind?
© Stack Overflow or respective owner