3

我在 WPF 项目中使用 AvalonDock。我想知道如何处理对接和取消对接事件。我在拖动时尝试了 MouseDown 和 Up,但没有明显成功。

...

<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"  />

...

4

0 回答 0