public void OnDragCompleted(SplitterGrip grip, DragCompletedEventArgs e) { _leftChildLength = ItemLength.Empty; _rightChildLength = ItemLength.Empty; e.Handled = true; }
public void OnDragStarted(SplitterGrip grip, DragStartedEventArgs args) { ComputeMinMax(grip, out _min, out _max); // save the current lentgs _leftChildLength = grip.LeftChild.Length; _rightChildLength = grip.RightChild.Length; args.Handled = true; }
/// <summary> /// Initializes instance members of the <see cref="SplitterItemViewModel"/> class. /// </summary> public SplitterItemViewModel() { Length = new ItemLength(1, ItemLengthUnitType.Star); }
/// <summary> /// Sets the Length property. This dependency property /// indicates .... /// </summary> public static void SetLength(DependencyObject d, ItemLength value) { d.SetValue(LengthProperty, value); }