Represents a key that is used to identify localizable resources in a BamlLocalizationDictionary.
Assembly: PresentationFramework (in PresentationFramework.dll)
|BamlLocalizableResourceKey(String, String, String)|
Initializes a new instance of theclass with the supplied Uid, class name, and property name.
Compares two instances offor equality.
Compares an object to an instance of Object.Equals(Object).)for equality.(Overrides
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Returns an integer hash code representing this instance.(Overrides Object.GetHashCode().)
Returns a string that represents the current object.(Inherited from Object.)
This class represents a key that can uniquely identify a localizable value inside binary XAML (BAML). It represents a combination of a Uid, class name, and property name.
The Uid value must be added to the source Extensible Application Markup Language (XAML) file either by using the updateuid Microsoft build engine (MSBuild) target (for example, msbuild /t:updateuid myproj.proj), or manually in the markup. BAML without a Uid cannot be localized. The class name is the type name of the element that contains the localizable property. The property name refers to the property that has the localizable value. A special property called "$Content" is used to represent values that are the initialization text or content property of an element. For example the $Content property name would apply to the initialization text Click in the following XAML:
<TextBlock x:Uid="myBlock">Click </TextBlock>
Legacy Code Example
The following example demonstrates how to use a.Code snippet is not found. Confirm that the code snippet name 'GrabBaml' is correct.
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.