Class LocalizationResourceAccessor
Represents the class that manages the localization for syncfusion controls.
Inheritance
System.Object
LocalizationResourceAccessor
Namespace: Syncfusion.UI.Xaml.Core
Assembly: Syncfusion.Core.WinUI.dll
Syntax
public abstract class LocalizationResourceAccessor : Object
Constructors
LocalizationResourceAccessor()
Initializes new instance of LocalizationResourceAccessor.
Declaration
public LocalizationResourceAccessor()
Properties
CustomResourceMap
Gets or sets the custom resource map.
Declaration
public ResourceMap CustomResourceMap { get; set; }
Property Value
Type |
---|
Microsoft.Windows.ApplicationModel.Resources.ResourceMap |
DefaultResourceMap
Gets the default resource map of the controls in the assembly.
Declaration
protected ResourceMap DefaultResourceMap { get; set; }
Property Value
Type |
---|
Microsoft.Windows.ApplicationModel.Resources.ResourceMap |
ResourceContext
Gets the resource context for the current executing assembly.
Declaration
public ResourceContext ResourceContext { get; }
Property Value
Type |
---|
Microsoft.Windows.ApplicationModel.Resources.ResourceContext |
Methods
GetLocalizedStringResource(String)
Returns to localized string based on Microsoft.Windows.ApplicationModel.Resources.ResourceContext.QualifierValues["Language"].
Declaration
public virtual string GetLocalizedStringResource(string resourcename)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourcename | Resource name to get localized string. |
Returns
Type | Description |
---|---|
System.String | Localized string resource. |
GetSourceSubTree(String)
Helps to update the CustomResourceMap and DefaultResourceMap based on the resxfile name passed.
Declaration
public ResourceMap GetSourceSubTree(string resxfile)
Parameters
Type | Name | Description |
---|---|---|
System.String | resxfile |
Returns
Type |
---|
Microsoft.Windows.ApplicationModel.Resources.ResourceMap |