DecideVisiblity() public méthode

Decides the visibllity of Handle or stub,whichever is set and hides the line-endarrow if the control is near the Grid or goes out of it.
public DecideVisiblity ( double handleLength ) : void
handleLength double
Résultat void
 protected override void OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs e)
 {
     base.OnMouseLeftButtonDown(e);
     marginHandle.DecideVisiblity(marginHandle.HandleLength);
 }
        /// <summary>
        /// Decides the visiblity of handle/stub when <see cref="HandleLength"/> changes
        /// </summary>
        /// <param name="d"></param>
        /// <param name="e"></param>
        public static void OnHandleLengthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MarginHandle mar = (MarginHandle)d;

            mar.DecideVisiblity((double)e.NewValue);
        }