コード例 #1
0
 public bool Equals(PositionOrigin origin)
 {
     if (X == origin.X)
     {
         return(Y == origin.Y);
     }
     return(false);
 }
コード例 #2
0
 public void AddChild(UIElement element, Location location, PositionOrigin origin)
 {
     Children.Add(element);
     SetPosition(element, location);
     SetPositionOrigin(element, origin);
 }
コード例 #3
0
 public static void SetPositionOrigin(DependencyObject dependencyObject, PositionOrigin origin) => dependencyObject.SetValue(PositionOriginProperty, origin);