更新とより明確な疑い:
ビデオが通過し、フレーム数に依存するスライドがあります。ビデオ形式は 640x480 で、スライダーはフレーム単位で定義されます!
ビデオの下にあるキャンバスに線を引くことができるように、ビデオ画像で右ボタンが押されたときにスライダーの位置[X、Y]を知る必要があります。
今ははっきりしていると思います。ライブラリを調べると、見つけられる唯一のパラメーターはslider.valueですが、それは私の主張ではありません。
私の試みのソースコード:
private void Slider_position(object sender, System.Windows.Controls.Slider e, System.Windows.Input.MouseEventArgs e1)
{
if (e1.RightButton == MouseButtonState.Pressed)
{
Line line = new Line();
line.X1 = e. //something, i would get here the coordinates X,Y of slider here
// calculation from slider position to canvas position
// draw a line of the height of the canvas here after
}
}