コード例 #1
0
        public void OnDragCompleted(SplitterGrip grip, DragCompletedEventArgs e)
        {
            _leftChildLength  = ItemLength.Empty;
            _rightChildLength = ItemLength.Empty;

            e.Handled = true;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 /// <summary>
 /// Initializes instance members of the <see cref="SplitterItemViewModel"/> class.
 /// </summary>
 public SplitterItemViewModel()
 {
     Length = new ItemLength(1, ItemLengthUnitType.Star);
 }
コード例 #4
0
 /// <summary>
 /// Sets the Length property. This dependency property
 /// indicates ....
 /// </summary>
 public static void SetLength(DependencyObject d, ItemLength value)
 {
     d.SetValue(LengthProperty, value);
 }