如何捕获 AvalonDock 断开和对接事件?
我在 WPF 项目中使用 AvalonDock。 我想知道如何处理对接和取消对接事件。 我在拖动时尝试了鼠标向下和向上,但没有明显的成功。
……
<ad:DockingManager x:Name="dockManager" Grid.Row="2" Margin="0,25,0,0" Background="Transparent" >
<ad:ResizingPanel Orientation="Vertical" >
<ad:ResizingPanel Orientation="Horizontal" >
<ad:DocumentPane Background="Transparent">
<ad:DocumentContent Title="Document View!">
<Grid Background="Transparent">
<Rectangle Name="rect_Zoom" Grid.Row="2" MouseLeftButtonDown="rect_Zoom_MouseDown" MouseMove="rect_Zoom_MouseMove" MouseWheel="rect_Zoom_MouseWheel" MouseUp="rect_Zoom_MouseUp" />
I am Using AvalonDock in a WPF project.
And I would like to konw how to handle the Docking and Undocking event.
i have tried MouseDown and Up while Dragging but no apparent success.
...
<ad:DockingManager x:Name="dockManager" Grid.Row="2" Margin="0,25,0,0" Background="Transparent" >
<ad:ResizingPanel Orientation="Vertical" >
<ad:ResizingPanel Orientation="Horizontal" >
<ad:DocumentPane Background="Transparent">
<ad:DocumentContent Title="Document View!">
<Grid Background="Transparent">
<Rectangle Name="rect_Zoom" Grid.Row="2" MouseLeftButtonDown="rect_Zoom_MouseDown" MouseMove="rect_Zoom_MouseMove" MouseWheel="rect_Zoom_MouseWheel" MouseUp="rect_Zoom_MouseUp" />
...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论