Class
CultureService

Exposes notation for culture support on a per DependencyObject instance basis.

Definition

Namespace:Telerik.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public sealed class CultureService

Inheritance: objectCultureService

Fields

CultureNameProperty

Identifies the CultureName attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty CultureNameProperty

Field Value

DependencyProperty

CultureProperty

Identifies the Culture attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty CultureProperty

Field Value

DependencyProperty

Methods

GetCulture(DependencyObject)

Gets the CultureInfo value for the specified dependency object instance.

Declaration

cs-api-definition
public static CultureInfo GetCulture(DependencyObject instance)

Parameters

instance

DependencyObject

Returns

CultureInfo

GetCultureName(DependencyObject)

Gets the CultureName value for the specified dependency object instance.

Declaration

cs-api-definition
public static string GetCultureName(DependencyObject instance)

Parameters

instance

DependencyObject

Returns

string

SetCulture(DependencyObject, CultureInfo)

Sets the specified CultureInfo value to the provided dependency object instance.

Declaration

cs-api-definition
public static void SetCulture(DependencyObject instance, CultureInfo value)

Parameters

instance

DependencyObject

value

CultureInfo

SetCultureName(DependencyObject, string)

Sets the specified CultureName value to the provided dependency object instance.

Declaration

cs-api-definition
public static void SetCultureName(DependencyObject instance, string cultureName)

Parameters

instance

DependencyObject

cultureName

string