private void PlaceAdornerPanel() { AdornerPanel.SetHorizontalStretch(designerUI, AdornerStretch.Stretch); AdornerPanel.SetVerticalStretch(designerUI, AdornerStretch.Stretch); var placement = new AdornerPlacementCollection(); placement.PositionRelativeToContentHeight(0, -10); placement.PositionRelativeToContentWidth(1, 0); placement.SizeRelativeToAdornerDesiredHeight(1, 0); placement.SizeRelativeToAdornerDesiredWidth(1, 0); AdornerPanel.SetPlacements(designerUI, placement); }
private void PlaceAdornerPanel() { AdornerPanel.SetHorizontalStretch(designerUI, AdornerStretch.Stretch); AdornerPanel.SetVerticalStretch(designerUI, AdornerStretch.Stretch); var placement = new AdornerPlacementCollection(); placement.PositionRelativeToContentHeight(0, -10); placement.PositionRelativeToContentWidth(1, 0); placement.SizeRelativeToAdornerDesiredHeight(1, 0); placement.SizeRelativeToAdornerDesiredWidth(1, 0); AdornerPanel.SetPlacements(designerUI, placement); }