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

Represents a customizable button control that displays a path geometry and allows for configurable content placement and style. Inherits from RadButton and provides additional properties such as PathGeometry and PathStyle to define the visual aspects of the button. The control supports multiple content placement options and margins, enhancing layout flexibility in user interfaces.

Definition

Constructors

Initializes a new instance of the RadPathButton class.

C#
public RadPathButton()

Fields

ContentMarginProperty

DependencyProperty

Registers the ContentMargin dependency property.

C#
public static readonly DependencyProperty ContentMarginProperty

ContentPlacementProperty

DependencyProperty

Registers the ContentPlacement dependency property.

C#
public static readonly DependencyProperty ContentPlacementProperty

PathGeometryProperty

DependencyProperty

Registers the PathGeometry dependency property.

C#
public static readonly DependencyProperty PathGeometryProperty

PathStyleProperty

DependencyProperty

Registers the PathStyle dependency property.

C#
public static readonly DependencyProperty PathStyleProperty

Properties

ContentMargin

Thickness

Gets or sets the content margin.

C#
public Thickness ContentMargin { get; set; }
Property Value:

The content margin.

Gets or sets the content placement.

C#
public Dock ContentPlacement { get; set; }
Property Value:

The content placement.

PathGeometry

Geometry

Gets or sets the path's geometry.

C#
public Geometry PathGeometry { get; set; }
Property Value:

The geometry.

Gets or sets the path's style.

C#
public Style PathStyle { get; set; }
Property Value:

The path's style.

Methods

Builds the visual tree for the control when a new template is applied.

C#
public override void OnApplyTemplate()

Overrides: RadButton.OnApplyTemplate()

Called when the Content property is changed.

C#
protected override void OnContentChanged(object oldContent, object newContent)
Parameters:oldContentobjectnewContentobject

Called when [content placement changed].

C#
protected virtual void OnContentPlacementChanged(Dock newValue, Dock oldValue)
Parameters:newValueDock

The new value.

oldValueDock

The old value.

Called when the ContentTemplate property is changed.

C#
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
Parameters:oldContentTemplateDataTemplatenewContentTemplateDataTemplate

Creates a RadButtonAutomationPeer.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

Overrides: RadButton.OnCreateAutomationPeer()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Overrides: RadButton.OnInitialized(EventArgs)