This documentation is archived and is not being maintained.
BamlLocalizationDictionary Class
Visual Studio 2008
Contains all the localizable resources in a binary XAML (BAML) record.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.
The dictionary contains a mapping from resource keys (defined as BamlLocalizableResourceKey objects) to resource values, specified as BamlLocalizableResource objects.
The following example demonstrates how to use a BamlLocalizationDictionary.
// Obtain the BAML stream. Stream source = entry.Value as Stream; // Create a BamlLocalizer on the stream. BamlLocalizer localizer = new BamlLocalizer(source); BamlLocalizationDictionary resources = localizer.ExtractResources(); // Write out all the localizable resources in the BAML. foreach (DictionaryEntry resourceEntry in resources) { BamlLocalizableResourceKey key = resourceEntry.Key as BamlLocalizableResourceKey; BamlLocalizableResource value = resourceEntry.Value as BamlLocalizableResource; Console.WriteLine( " {0}.{1}.{2} = {3}", key.Uid, key.ClassName, key.PropertyName, value.Content ); }
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: