Example #1
0
        /// <summary>
        /// Called when the <see cref="OrientedScrollBar.ViewportSize"/> property of one of the scroll bar's child scroll bars changes.
        /// </summary>
        internal void OnChildViewportSizeChanged(OrientedScrollBar child, Double value)
        {
            var orientedScrollBar = (Orientation == Orientation.Horizontal) ? PART_HScrollBar : PART_VScrollBar;

            if (orientedScrollBar == child)
            {
                ViewportSize = value;
            }
        }
Example #2
0
        /// <summary>
        /// Called when the <see cref="RangeBase.Maximum"/> property of one of the scroll bar's child scroll bars changes.
        /// </summary>
        internal void OnChildMaximumChanged(OrientedScrollBar child, Double value)
        {
            var orientedScrollBar = (Orientation == Orientation.Horizontal) ? PART_HScrollBar : PART_VScrollBar;

            if (orientedScrollBar == child)
            {
                Maximum = value;
            }
        }