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. 3
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/GridPlacementSupport.cs
  2. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Extensions/SnaplinePlacementBehavior.cs

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

@ -227,11 +227,14 @@ 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 (info.Item == Services.Selection.PrimarySelection) {
// only for primary selection:
if (grayOut != null) { if (grayOut != null) {
grayOut.AnimateActiveAreaRectTo(availableSpaceRect); grayOut.AnimateActiveAreaRectTo(availableSpaceRect);
} else { } else {
GrayOutDesignerExceptActiveArea.Start(ref grayOut, this.Services, this.ExtendedItem.View, availableSpaceRect); 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;
VerticalAlignment va = (VerticalAlignment)info.Item.Properties[FrameworkElement.VerticalAlignmentProperty].ValueOnInstance; VerticalAlignment va = (VerticalAlignment)info.Item.Properties[FrameworkElement.VerticalAlignmentProperty].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