Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1700
Which eventSetter for ToogleMaximized
posted

Hello,

I want to set my Handler when a user maximized or reduce a tile, when a MouseUp event is fired.

Which code do I need to enter in my control.Resources ?

For example, this is mine :

<Style TargetType="{x:Type ig:XamTile}" BasedOn="{StaticResource {x:Type ig:XamTile}}">
<EventSetter Event="MouseLeftButtonUp" Handler="MouseLeftClickAction"/>
<EventSetter Event="MouseLeftButtonDown" Handler="MouseLeftClickAction"/>
<EventSetter Event="MouseDown" Handler="MouseLeftClickAction"/>
</Style>
<Style TargetType="{x:Type igPrim:TileHeaderPresenter}" BasedOn="{StaticResource {x:Type igPrim:TileHeaderPresenter}}">
<EventSetter Event="MouseLeftButtonUp" Handler="MouseLeftClickAction"/>
<EventSetter Event="MouseLeftButtonDown" Handler="MouseLeftClickAction"/>
</Style>

How to complete it ?

Regards