Browse Source

GrayOutDesignerExceptActiveArea: only primary selection

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4777 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 16 years ago
parent
commit
d47aae7e41
  1. 11
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/GridPlacementSupport.cs
  2. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs

11
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/GridPlacementSupport.cs

@ -227,10 +227,13 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
new Point(GetColumnOffset(leftColumnIndex), GetRowOffset(topRowIndex)), new Point(GetColumnOffset(leftColumnIndex), GetRowOffset(topRowIndex)),
new Point(GetColumnOffset(rightColumnIndex + 1), GetRowOffset(bottomRowIndex + 1)) new Point(GetColumnOffset(rightColumnIndex + 1), GetRowOffset(bottomRowIndex + 1))
); );
if (grayOut != null) { if (info.Item == Services.Selection.PrimarySelection) {
grayOut.AnimateActiveAreaRectTo(availableSpaceRect); // only for primary selection:
} else { if (grayOut != null) {
GrayOutDesignerExceptActiveArea.Start(ref grayOut, this.Services, this.ExtendedItem.View, availableSpaceRect); grayOut.AnimateActiveAreaRectTo(availableSpaceRect);
} else {
GrayOutDesignerExceptActiveArea.Start(ref grayOut, this.Services, this.ExtendedItem.View, availableSpaceRect);
}
} }
HorizontalAlignment ha = (HorizontalAlignment)info.Item.Properties[FrameworkElement.HorizontalAlignmentProperty].ValueOnInstance; HorizontalAlignment ha = (HorizontalAlignment)info.Item.Properties[FrameworkElement.HorizontalAlignmentProperty].ValueOnInstance;

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs

@ -24,8 +24,8 @@ namespace ICSharpCode.WpfDesign.Designer.Extensions
List<Snapline> verticalMap; List<Snapline> verticalMap;
double? baseline; double? baseline;
public static double Accuracy = 5; public const double Accuracy = 5;
public static double Margin = 8; public const double Margin = 8;
public override void BeginPlacement(PlacementOperation operation) public override void BeginPlacement(PlacementOperation operation)
{ {

Loading…
Cancel
Save