|
|
@ -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; |
|
|
|