gpt4 book ai didi

wpf - 网格分割器和触摸

转载 作者:行者123 更新时间:2023-12-04 19:37:01 25 4
gpt4 key购买 nike

我正在使用GridSplitter来调整列的大小(其他:))。工作良好。
但是,我正在Surface V2环境中发展,如果使用触摸仿真,Touch事件不会传输到我亲爱的GridSplitter。

关于如何使它起作用的任何提示?

最佳答案

只需这样注册事件:

YourGridSplitter.PreviewDragEnter += new DragEventHandler(YourGridSplitter_PreviewDragEnter);

void YourGridSplitter_PreviewDragEnter(object sender, DragEventArgs e)
{
// nothing here
}

关于wpf - 网格分割器和触摸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6580716/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com