我一直在测试Blu,发现可以拖动窗口。这个窗口是透明的。我试图用Thumb做同样的事情,但不知道如何使它透明。窗口的其余部分是透明的,但是Thumb不是。
有没有办法使Thumb透明,或者我应该使用其他技术?
我使用这个事件:
有没有办法使Thumb透明,或者我应该使用其他技术?
我使用这个事件:
private void DragThumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e)
{
Canvas.SetLeft(this, Canvas.GetLeft(this) + e.HorizontalChange);
Canvas.SetTop(this, Canvas.GetTop(this) + e.VerticalChange);
}
谢谢你
DragDeltaEventArgs
中获取的VerticalChange
和HorizontalChange
值。如果您需要处理拖动,则Thumb
是正确的选择,将其不透明度设置为0,如另一个答案中所述。 - heltonbiker