Class
RadPathButton

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

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Buttons")]
public class RadPathButton : RadButton

Inheritance: objectRadButtonRadPathButton

Derived Classes: GridViewPinButton

Inherited Members RadButton.HoverDelayPropertyRadButton.CornerRadiusPropertyRadButton.IsBackgroundVisiblePropertyRadButton.ActivateEventRadButton.HoverEventRadButton.OnActivate()RadButton.OnHover()RadButton.OnClick()RadButton.OnLostFocus(RoutedEventArgs)RadButton.OnGotFocus(RoutedEventArgs)RadButton.OnMouseEnter(MouseEventArgs)RadButton.OnMouseLeave(MouseEventArgs)RadButton.OnMouseMove(MouseEventArgs)RadButton.OnIsPressedChanged(DependencyPropertyChangedEventArgs)RadButton.HoverDelayRadButton.CornerRadiusRadButton.IsBackgroundVisibleRadButton.ActivateRadButton.Hover

Constructors

RadPathButton()

Initializes a new instance of the RadPathButton class.

Declaration

cs-api-definition
public RadPathButton()

Fields

ContentMarginProperty

Registers the ContentMargin dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentMarginProperty

Field Value

DependencyProperty

ContentPlacementProperty

Registers the ContentPlacement dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentPlacementProperty

Field Value

DependencyProperty

PathGeometryProperty

Registers the PathGeometry dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PathGeometryProperty

Field Value

DependencyProperty

PathStyleProperty

Registers the PathStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty PathStyleProperty

Field Value

DependencyProperty

Properties

ContentMargin

Gets or sets the content margin.

Declaration

cs-api-definition
public Thickness ContentMargin { get; set; }

Property Value

Thickness

The content margin.

ContentPlacement

Gets or sets the content placement.

Declaration

cs-api-definition
public Dock ContentPlacement { get; set; }

Property Value

Dock

The content placement.

PathGeometry

Gets or sets the path's geometry.

Declaration

cs-api-definition
public Geometry PathGeometry { get; set; }

Property Value

Geometry

The geometry.

PathStyle

Gets or sets the path's style.

Declaration

cs-api-definition
public Style PathStyle { get; set; }

Property Value

Style

The path's style.

Methods

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides RadButton.OnApplyTemplate()

OnContentChanged(object, object)

Called when the Content property is changed.

Declaration

cs-api-definition
protected override void OnContentChanged(object oldContent, object newContent)

Parameters

oldContent

object

newContent

object

OnContentPlacementChanged(Dock, Dock)

Called when [content placement changed].

Declaration

cs-api-definition
protected virtual void OnContentPlacementChanged(Dock newValue, Dock oldValue)

Parameters

newValue

Dock

The new value.

oldValue

Dock

The old value.

OnContentTemplateChanged(DataTemplate, DataTemplate)

Called when the ContentTemplate property is changed.

Declaration

cs-api-definition
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)

Parameters

oldContentTemplate

DataTemplate

newContentTemplate

DataTemplate

OnCreateAutomationPeer()

Creates a RadButtonAutomationPeer.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

Overrides RadButton.OnCreateAutomationPeer()

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Overrides RadButton.OnInitialized(EventArgs)