Ejemplo n.º 1
0
 public HandleElement GetHandle(GradientToolHandleType handleType)
 {
     base.VerifyAccess();
     for (int i = 0; i < this.handles.Length; i++)
     {
         if (GetHandleType(this.handles[i]) == handleType)
         {
             return(this.handles[i]);
         }
     }
     ExceptionUtil.ThrowKeyNotFoundException();
     return(null);
 }
Ejemplo n.º 2
0
 public static void SetHandleType(UIElement target, GradientToolHandleType value)
 {
     target.SetValue(HandleTypeProperty, EnumUtil.GetBoxed <GradientToolHandleType>(value));
 }