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