ClassRadTemplatedButton
Represents a Button with templated content.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadTemplatedButton : RadButtonBase, INotifyPropertyChanged
Inheritance: objectRadButtonBaseRadTemplatedButton
Derived Classes:
Implements:
Inherited Members
Constructors
RadTemplatedButton()
Initializes a new instance of the RadTemplatedButton class.
Declaration
public RadTemplatedButton()
Fields
ActualContentProperty
Identifies the ActualContent property.
Declaration
public static readonly BindableProperty ActualContentProperty
Field Value
BindableProperty
ContentProperty
Identifies the Content property.
Declaration
public static readonly BindableProperty ContentProperty
Field Value
BindableProperty
ContentTemplateProperty
Identifies the ContentTemplate property.
Declaration
public static readonly BindableProperty ContentTemplateProperty
Field Value
BindableProperty
FontAttributesProperty
Identifies the FontAttributes property.
Declaration
public static readonly BindableProperty FontAttributesProperty
Field Value
BindableProperty
FontFamilyProperty
Identifies the FontFamily property.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
BindableProperty
FontSizeProperty
Identifies the FontSize property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
BindableProperty
HorizontalTextAlignmentProperty
Identifies the HorizontalTextAlignment property.
Declaration
public static readonly BindableProperty HorizontalTextAlignmentProperty
Field Value
BindableProperty
TextColorProperty
Identifies the TextColor property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
BindableProperty
TextDecorationsProperty
Identifies the TextDecorations property.
Declaration
public static readonly BindableProperty TextDecorationsProperty
Field Value
BindableProperty
VerticalTextAlignmentProperty
Identifies the VerticalTextAlignment property.
Declaration
public static readonly BindableProperty VerticalTextAlignmentProperty
Field Value
BindableProperty
Properties
ActualContent
Gets the actual presented content. If Content is set and ContentTemplate is set, returns a View created from the ContentTemplate.CreateView(), having Content as its BindingContext. If Content is set to a string and no ContentTemplate is set, returns a default Label which Text is set to Content. />. If Content is set to a View and no ContentTemplate is set, returns the View. If Content is set to a data object and no ContentTemplate, returns a default Label which Text is set to the ToString() representation of the data object.
Declaration
public View ActualContent { get; }
Property Value
View
Content
If Content is set and ContentTemplate is set, the View returned from the ContentTemplate.CreateView() will be displayed inside the ControlTemplate, having Content as its BindingContext. If Content is set to a string and no ContentTemplate is set, it will be converted to Label which Text is set to the Content inside the ControlTemplate. If Content is set to a View and no ContentTemplate is set, the View will be displayed inside the ControlTemplate. If Content is set to a data object and no ContentTemplate is set, the ToString() of the data object will be used and converted to Label inside the ControlTemplate.
ContentTemplate
If ContentTemplate is set, the View returned from the ContentTemplate.CreateView() will be displayed inside the ControlTemplate, having Content as its BindingContext. If ContentTemplate is DataTemplateSelector, first the DataTemplate will be selected and then a View will be created from the chosen template using Content as its BindingContext.
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
DataTemplate
FontAttributes
Gets or sets the font attributes of the Label created when Content is string and ContentTemplate is not set. For more information see the FontAttributes type.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
FontAttributes
FontFamily
Gets or sets the font family of the Label created when Content is string and ContentTemplate is not set.
FontSize
Gets or sets the font size in pixels of the Label created when Content is string and ContentTemplate is not set.
Declaration
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Property Value
HorizontalTextAlignment
Gets or sets the horizontal alignment of the Label created when Content is string and ContentTemplate is not set. For more information see the TextAlignment type.
Declaration
public TextAlignment HorizontalTextAlignment { get; set; }
Property Value
TextAlignment
TextColor
Gets or sets the text color of the Label created when Content is string and ContentTemplate is not set.
Declaration
public Color TextColor { get; set; }
Property Value
Color
TextDecorations
Gets or sets the text decorations of the Label created when Content is string and ContentTemplate is not set. For more information see the TextDecorations type.
Declaration
public TextDecorations TextDecorations { get; set; }
Property Value
TextDecorations
VerticalTextAlignment
Gets or sets the vertical alignment of the Label created when Content is string and ContentTemplate is not set. For more information see the TextAlignment type.
Declaration
public TextAlignment VerticalTextAlignment { get; set; }
Property Value
TextAlignment