Jason94
Jason94

Reputation: 13610

On release event on a slider?

I'm making a slider control to a throttle control, and I want it to go to its startposition when I release it with my finger.

I've tried LostFocus but that event needs you to click something else... And it might be problematic as I have two sliders.

Upvotes: 1

Views: 209

Answers (2)

Bendik Nilsen Aune
Bendik Nilsen Aune

Reputation: 216

The ManipulationEnded event should do the trick

MSDN UIElement.ManipulationEnded Event

Upvotes: 1

GameAlchemist
GameAlchemist

Reputation: 19294

Did you try PreviewMouseUp / PreviewStylusUp event ?

Upvotes: 0

Related Questions