New to Telerik UI for .NET MAUIStart a free 30-day trial

Provides attached properties that connect a host control to a focus-indication RadBorder nested inside its control template, allowing the host to configure the border's brush and thickness without requiring a direct TemplateBinding.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public static class FocusBorderUtils

Inheritance: objectFocusBorderUtils

Fields

BorderBrushProperty

BindableProperty

Identifies the BorderBrush attached property.

C#
public static readonly BindableProperty BorderBrushProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness attached property.

C#
public static readonly BindableProperty BorderThicknessProperty

HasFocusBorderProperty

BindableProperty

Identifies the HasFocusBorder attached property.

C#
public static readonly BindableProperty HasFocusBorderProperty

IsFocusBorderProperty

BindableProperty

Identifies the IsFocusBorder attached property.

C#
public static readonly BindableProperty IsFocusBorderProperty

MarginProperty

BindableProperty

Identifies the Margin attached property.

C#
public static readonly BindableProperty MarginProperty

Methods

Gets the border brush value for the specified BindableObject.

C#
public static Brush GetBorderBrush(BindableObject bindable)
Parameters:bindableBindableObject

The BindableObject to get the border brush for.

Returns:

Brush

The Brush value.

Gets the border thickness value for the specified BindableObject.

C#
public static Thickness GetBorderThickness(BindableObject bindable)
Parameters:bindableBindableObject

The BindableObject to get the border thickness for.

Returns:

Thickness

The Thickness value.

Gets the HasFocusBorder value for the specified BindableObject.

C#
public static bool GetHasFocusBorder(BindableObject bindable)
Parameters:bindableBindableObject

The BindableObject to get the HasFocusBorder value for.

Returns:

bool

The bool value.

Gets the IsFocusBorder value for the specified BindableObject.

C#
public static bool GetIsFocusBorder(BindableObject bindable)
Parameters:bindableBindableObject

The BindableObject to get the IsFocusBorder value for.

Returns:

bool

The bool value.

Gets the margin value for the specified BindableObject.

C#
public static Thickness GetMargin(BindableObject bindable)
Parameters:bindableBindableObject

The BindableObject to get the margin for.

Returns:

Thickness

The Thickness value.

Sets the border brush value for the specified BindableObject.

C#
public static void SetBorderBrush(BindableObject bindable, Brush value)
Parameters:bindableBindableObject

The BindableObject to set the border brush for.

valueBrush

The Brush value to set.

Sets the border thickness value for the specified BindableObject.

C#
public static void SetBorderThickness(BindableObject bindable, Thickness value)
Parameters:bindableBindableObject

The BindableObject to set the border thickness for.

valueThickness

The Thickness value to set.

Sets the HasFocusBorder value for the specified BindableObject.

C#
public static void SetHasFocusBorder(BindableObject bindable, bool value)
Parameters:bindableBindableObject

The BindableObject to set the HasFocusBorder value for.

valuebool

The bool value to set.

Sets the IsFocusBorder value for the specified BindableObject.

C#
public static void SetIsFocusBorder(BindableObject bindable, bool value)
Parameters:bindableBindableObject

The BindableObject to set the IsFocusBorder value for.

valuebool

The bool value to set.

Sets the margin value for the specified BindableObject.

C#
public static void SetMargin(BindableObject bindable, Thickness value)
Parameters:bindableBindableObject

The BindableObject to set the margin for.

valueThickness

The Thickness value to set.