WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ResourceNameToResourceStringConverter

    Show / Hide Table of Contents

    Class ResourceNameToResourceStringConverter

    Value converter that look up for the source string in based on culture with the help of LocalizationResourceAccessor and returns its value, if found.

    Inheritance
    System.Object
    ResourceNameToResourceStringConverter
    RichTextBoxAdvResourceNameToResourceStringConverter
    RichTextRibbonResourceNameToResourceStringConverter
    Implements
    System.Windows.Data.IValueConverter
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public class ResourceNameToResourceStringConverter : IValueConverter

    Constructors

    ResourceNameToResourceStringConverter()

    Declaration
    public ResourceNameToResourceStringConverter()

    Methods

    Convert(Object, Type, Object, CultureInfo)

    Take the source string as a resource name that will be looked up in the App Resources. If the resource exists, the value is returned.

    Declaration
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object value

    The resource name to get localized resource string.

    System.Type targetType

    The type of the target property, as a type reference.

    System.Object parameter

    Optional parameter. resource name to get localized resource sting.

    System.Globalization.CultureInfo culture

    Current UI culture.

    Returns
    Type Description
    System.Object

    The string corresponding to the resource name.

    ConvertBack(Object, Type, Object, CultureInfo)

    Not implemented.

    Declaration
    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    Parameters
    Type Name Description
    System.Object value

    The source string being passed to the target.

    System.Type targetType

    The type of the target property, as a type reference.

    System.Object parameter

    Optional parameter. Not used.

    System.Globalization.CultureInfo culture

    The language of the conversion.

    Returns
    Type Description
    System.Object

    The value to be passed to the target dependency property.

    GetResourceAccessor()

    Returns the LocalizationResourceAccessor associated with control assembly.

    Declaration
    protected virtual LocalizationResourceAccessor GetResourceAccessor()
    Returns
    Type Description
    LocalizationResourceAccessor

    Implements

    System.Windows.Data.IValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved