public bool Equals(PositionOrigin origin) { if (X == origin.X) { return(Y == origin.Y); } return(false); }
public void AddChild(UIElement element, Location location, PositionOrigin origin) { Children.Add(element); SetPosition(element, location); SetPositionOrigin(element, origin); }
public static void SetPositionOrigin(DependencyObject dependencyObject, PositionOrigin origin) => dependencyObject.SetValue(PositionOriginProperty, origin);