Как отловить события отстыковки и стыковки AvalonDock? - PullRequest
3 голосов
/ 20 октября 2011

Я использую AvalonDock в проекте WPF.И я хотел бы узнать, как обрабатывать события стыковки и расстыковки.я пробовал 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"  />

...

...