ClassRadPathButton
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:
[TelerikToolboxCategory("Buttons")]
public class RadPathButton : RadButton
Inheritance: objectRadButtonRadPathButton
Derived Classes:
Inherited Members
Constructors
RadPathButton()
Initializes a new instance of the RadPathButton class.
Declaration
public RadPathButton()
Fields
ContentMarginProperty
Registers the ContentMargin dependency property.
Declaration
public static readonly DependencyProperty ContentMarginProperty
Field Value
DependencyProperty
ContentPlacementProperty
Registers the ContentPlacement dependency property.
Declaration
public static readonly DependencyProperty ContentPlacementProperty
Field Value
DependencyProperty
PathGeometryProperty
Registers the PathGeometry dependency property.
Declaration
public static readonly DependencyProperty PathGeometryProperty
Field Value
DependencyProperty
PathStyleProperty
Registers the PathStyle dependency property.
Declaration
public static readonly DependencyProperty PathStyleProperty
Field Value
DependencyProperty
Properties
ContentMargin
Gets or sets the content margin.
Declaration
public Thickness ContentMargin { get; set; }
Property Value
Thickness
The content margin.
ContentPlacement
Gets or sets the content placement.
Declaration
public Dock ContentPlacement { get; set; }
Property Value
Dock
The content placement.
PathGeometry
Gets or sets the path's geometry.
Declaration
public Geometry PathGeometry { get; set; }
Property Value
Geometry
The geometry.
PathStyle
Gets or sets the path's style.
Declaration
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
public override void OnApplyTemplate()
Overrides
OnContentChanged(object, object)
Called when the Content property is changed.
OnContentPlacementChanged(Dock, Dock)
Called when [content placement changed].
Declaration
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
protected override void OnContentTemplateChanged(DataTemplate oldContentTemplate, DataTemplate newContentTemplate)
Parameters
oldContentTemplate
DataTemplate
newContentTemplate
DataTemplate
OnCreateAutomationPeer()
Creates a RadButtonAutomationPeer.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnInitialized(EventArgs)
Raises the event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides