-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slider's Thumb.DragStarted
and Thumb.DragCompleted
aren't working
#4210
Comments
If I wanted to implement support for this myself and then submit the PR, what would I need to do? |
If you want to override the properties of slider, it's best if you just make a new control with Slider as base class... but if you need some kind of slider for a media player, take a look at this code: https://github.com/jmacato/Synfonia/blob/master/Synfonia.Gui/Controls/SeekSlider.cs |
I'm moreso trying to make some simple demo apps for Avalonia right now. (Mainly as a way to learn the API). I'm trying to port over a tiny audio player app I made in GtkSharp. The slider was used to show where playback was for the user, but also they could click on the thumb and drag to to change the location in the music. |
I had the same problem. This bug seems to be still unresolved in the latest version (0.10.17). Is there any other solution to this problem now? Many thanks. |
Routed attached events are not supported in the XAML, |
@xiaokun you can do it from the code behind or write a behavior (using Behaviors SDK). |
I have this XAML:
I see in the Avalonia repo that
DragStarted
andDragCompleted
are inThumb
, but when I tried to attach my handlers to them, I was treated with this at thedotnet run
level:The text was updated successfully, but these errors were encountered: