Beispiel #1
0
        protected override double ElementOffset(UIElement element)
        {
            double num = base.ElementOffset(element);

            if (XYAxisElementsPanel.GetPosition(element) == AxisElementPosition.Outside && element != this._scrollBar)
            {
                num += this.ElementHeight(this._scrollBar.DesiredSize);
            }
            return(num);
        }
Beispiel #2
0
        protected override double ElementOffset(UIElement element)
        {
            Size   desiredSize = XYAxisBasePanel.GetDesiredSize(element);
            double num         = 0.0;

            switch (XYAxisElementsPanel.GetPosition(element))
            {
            case AxisElementPosition.Inside:
            case AxisElementPosition.None:
                num = this.ElementHeight(desiredSize);
                break;

            case AxisElementPosition.Cross:
                num = this.ElementHeight(desiredSize) / 2.0;
                break;
            }
            return(-num);
        }