New to Telerik UI for WPFStart a free 30-day trial

Represents a custom markup extension for creating common shape geometries.

Definition

Namespace:Telerik.Windows.Controls.Diagrams

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

C#
public class CommonShapeExtension : MarkupExtension

Inheritance: objectCommonShapeExtension

Constructors

Initializes a new instance of the CommonShapeExtension class.

C#
public CommonShapeExtension()

Properties

The type of the shape.

C#
public CommonShapeType ShapeType { get; set; }

Methods

When implemented in a derived class, returns an object that is set as the value of the target property for this markup extension.

C#
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters:serviceProviderIServiceProvider

Object that can provide services for the markup extension.

Returns:

object

The object value to set on the property where the extension is applied.