Open.Core.UI.Controls.TriangleButton.UpdateShape C# (CSharp) Method

UpdateShape() protected method

protected UpdateShape ( ArrowDirection pointerDirection ) : void
pointerDirection ArrowDirection
return void
        protected override void UpdateShape(ArrowDirection pointerDirection)
        {
            switch (pointerDirection)
            {
                case ArrowDirection.Left: ShapePathData = Shapes.TriangleLeft; break;
                case ArrowDirection.Right: ShapePathData = Shapes.TriangleRight; break;
                case ArrowDirection.Up: ShapePathData = Shapes.TriangleUp; break;
                case ArrowDirection.Down: ShapePathData = Shapes.TriangleDown; break;

                default: throw new NotSupportedException(PointerDirection.ToString());
            }
        }
    }