Browse Source

Design Surface should Handle RequestbringIntoView of the ScrollViewer!

When not, sometimes when you Select Controls you move them Around even if you don't want to do this, because the Scrollviewer Scrolls
while Mouse Button is pressed!
pull/52/head
jkuehner 12 years ago
parent
commit
df13af3c8e
  1. 6
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/DesignSurface.cs

6
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/DesignSurface.cs

@ -67,12 +67,18 @@ namespace ICSharpCode.WpfDesign.Designer @@ -67,12 +67,18 @@ namespace ICSharpCode.WpfDesign.Designer
{
_partDesignContent = this.Template.FindName("PART_DesignContent", this) as ContentControl;
_partDesignContent.Content = _designPanel;
_partDesignContent.RequestBringIntoView += _partDesignContent_RequestBringIntoView;
this.ZoomControl = this.Template.FindName("PART_Zoom", this) as ZoomControl;
base.OnApplyTemplate();
}
void _partDesignContent_RequestBringIntoView(object sender, RequestBringIntoViewEventArgs e)
{
e.Handled = true;
}
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
{
if (ZoomControl != null && e.OriginalSource == ZoomControl)

Loading…
Cancel
Save