示例#1
0
        public override void OnRender(Media.DrawingContext dc)
        {
            int width = this._renderWidth;
            int height = this._renderHeight;

            if (_direction == Direction.TopToBottom)
            {
                dc.DrawLine(Stroke, 0, 0, width - 1, height - 1);
            }
            else
            {
                dc.DrawLine(Stroke, 0, height - 1, width - 1, 0);
            }
        }