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); }
public static void SetHandleType(UIElement target, GradientToolHandleType value) { target.SetValue(HandleTypeProperty, EnumUtil.GetBoxed <GradientToolHandleType>(value)); }