R
R
rad952020-02-20 13:52:14
WPF
rad95, 2020-02-20 13:52:14

How to properly handle events?

I want to make a volume mixer and for this I output its elements:
5e4e639b9f2eb795593424.png
Like this:

lstBox.Items.Add(pw.WindowTitle);
lstBox.Items.Add(new Slider { Minimum = 0, Maximum = 100, Width = 500, IsMoveToPointEnabled = true, });

Question: When changing the value of the slider, how can I change the volume of the application that is above it? I know how to change the volume. I need to understand how to correctly handle the events of changing the values ​​​​of the sliders, and call the method for changing the volume in this case.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-02-20
@rad95

Inherit slider in your control
https://docs.microsoft.com/ru-ru/dotnet/api/system
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question