public void ShowVisualCues() { Visuals.SetRectangle(Visuals.InsertionPointLine, insertionLineCoordinates); Visuals.SetRectangle(Visuals.InsertionContainerRectangle, Visuals.GetAbsoluteBounds(panel)); if (classification != PointSituationRelativeToRect.Fill) { Designer.Instance.Canvas.Children.Add(Visuals.InsertionPointLine); } else { Designer.Instance.Canvas.Children.Add(Visuals.InsertionContainerRectangle); } }
public void ShowAt(UIElement element) { Designer.Instance.Canvas.Children.Add(topLeft); Designer.Instance.Canvas.Children.Add(topRight); Designer.Instance.Canvas.Children.Add(bottomLeft); Designer.Instance.Canvas.Children.Add(bottomRight); var bounds = Visuals.GetAbsoluteBounds(element); var size = 8; Visuals.SetRectangle(topLeft, new Rect(bounds.Left - size, bounds.Top - size, size, size)); Visuals.SetRectangle(topRight, new Rect(bounds.Right, bounds.Top - size, size, size)); Visuals.SetRectangle(bottomLeft, new Rect(bounds.Left - size, bounds.Bottom, size, size)); Visuals.SetRectangle(bottomRight, new Rect(bounds.Right, bounds.Bottom, size, size)); }
public void ShowVisualCues() { Visuals.SetRectangle(Visuals.InsertionPointLine, insertionLineCoordinates); Designer.Instance.Canvas.Children.Add(Visuals.InsertionPointLine); }
public void ShowVisualCues() { this.Opacity = 1; Visuals.SetRectangle(Visuals.InsertionContainerRectangle, Visuals.GetAbsoluteBounds(this)); Designer.Instance.Canvas.Children.Add(Visuals.InsertionContainerRectangle); }