Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Markup / Localizer / BamlLocalizabilityResolver.cs / 1 / BamlLocalizabilityResolver.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: BamlLocalizabilityResolver class // // History: // 11/29/2004: Garyyang Created the file // 03/24/2005 Garyyang Move to System.Windows.Markup.Localizer namespace //--------------------------------------------------------------------------- namespace System.Windows.Markup.Localizer { ////// BamlLocalizabilityResolver class. It is implemented by Baml localization API client to provide /// Localizability settings to Baml content /// public abstract class BamlLocalizabilityResolver { ////// Obtain the localizability of an element and /// the whether the element can be formatted inline. /// The method is called when extracting localizable resources from baml /// /// Full assembly name /// Full class name ///ElementLocalizability public abstract ElementLocalizability GetElementLocalizability( string assembly, string className ); ////// Obtain the localizability of a property /// The method is called when extracting localizable resources from baml /// /// Full assembly name /// Full class name that contains the property defintion /// property name ///LocalizabilityAttribute for the property public abstract LocalizabilityAttribute GetPropertyLocalizability( string assembly, string className, string property ); ////// Return full class name of a formatting tag that hasn't been encountered in Baml /// The method is called when applying translations to the localized baml /// /// formatting tag name ///Full name of the class that is formatted inline public abstract string ResolveFormattingTagToClass( string formattingTag ); ////// Return full name of the assembly that contains the class definition /// /// Full class name ///Full name of the assembly containing the class public abstract string ResolveAssemblyFromClass( string className ); } ////// The localizability information for an element /// public class ElementLocalizability { private string _formattingTag; private LocalizabilityAttribute _attribute; ////// Constructor /// public ElementLocalizability() { } ////// Constructor /// /// formatting tag, give a non-empty value to indicate that the class is formatted inline /// LocalizabilityAttribute for the class public ElementLocalizability(string formattingTag, LocalizabilityAttribute attribute) { _formattingTag = formattingTag; _attribute = attribute; } ////// Set or Get the formatting tag /// public string FormattingTag { get { return _formattingTag; } set { _formattingTag = value; } } ////// Set or get the LocalizabilityAttribute /// public LocalizabilityAttribute Attribute { get { return _attribute; } set { _attribute = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: BamlLocalizabilityResolver class // // History: // 11/29/2004: Garyyang Created the file // 03/24/2005 Garyyang Move to System.Windows.Markup.Localizer namespace //--------------------------------------------------------------------------- namespace System.Windows.Markup.Localizer { ////// BamlLocalizabilityResolver class. It is implemented by Baml localization API client to provide /// Localizability settings to Baml content /// public abstract class BamlLocalizabilityResolver { ////// Obtain the localizability of an element and /// the whether the element can be formatted inline. /// The method is called when extracting localizable resources from baml /// /// Full assembly name /// Full class name ///ElementLocalizability public abstract ElementLocalizability GetElementLocalizability( string assembly, string className ); ////// Obtain the localizability of a property /// The method is called when extracting localizable resources from baml /// /// Full assembly name /// Full class name that contains the property defintion /// property name ///LocalizabilityAttribute for the property public abstract LocalizabilityAttribute GetPropertyLocalizability( string assembly, string className, string property ); ////// Return full class name of a formatting tag that hasn't been encountered in Baml /// The method is called when applying translations to the localized baml /// /// formatting tag name ///Full name of the class that is formatted inline public abstract string ResolveFormattingTagToClass( string formattingTag ); ////// Return full name of the assembly that contains the class definition /// /// Full class name ///Full name of the assembly containing the class public abstract string ResolveAssemblyFromClass( string className ); } ////// The localizability information for an element /// public class ElementLocalizability { private string _formattingTag; private LocalizabilityAttribute _attribute; ////// Constructor /// public ElementLocalizability() { } ////// Constructor /// /// formatting tag, give a non-empty value to indicate that the class is formatted inline /// LocalizabilityAttribute for the class public ElementLocalizability(string formattingTag, LocalizabilityAttribute attribute) { _formattingTag = formattingTag; _attribute = attribute; } ////// Set or Get the formatting tag /// public string FormattingTag { get { return _formattingTag; } set { _formattingTag = value; } } ////// Set or get the LocalizabilityAttribute /// public LocalizabilityAttribute Attribute { get { return _attribute; } set { _attribute = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeExporter.cs
- Baml2006ReaderContext.cs
- VisualTreeHelper.cs
- COM2Enum.cs
- ServiceHostingEnvironmentSection.cs
- ClientRoleProvider.cs
- DbQueryCommandTree.cs
- RegexRunnerFactory.cs
- ParallelTimeline.cs
- PrintDialog.cs
- Vars.cs
- ImportCatalogPart.cs
- DataKey.cs
- SwitchLevelAttribute.cs
- Context.cs
- _MultipleConnectAsync.cs
- Version.cs
- InteropAutomationProvider.cs
- NumericExpr.cs
- SecurityCriticalDataForSet.cs
- NetNamedPipeSecurityElement.cs
- AliasGenerator.cs
- ThreadPool.cs
- PixelFormat.cs
- NavigationWindow.cs
- CanonicalizationDriver.cs
- TransformCollection.cs
- DynamicResourceExtensionConverter.cs
- SHA1CryptoServiceProvider.cs
- EventManager.cs
- CommandConverter.cs
- UnmanagedMarshal.cs
- IndexOutOfRangeException.cs
- InputReportEventArgs.cs
- CodeTypeReferenceSerializer.cs
- SynchronizedDispatch.cs
- StrongNameMembershipCondition.cs
- XhtmlBasicCommandAdapter.cs
- UITypeEditor.cs
- EncoderReplacementFallback.cs
- PrimitiveXmlSerializers.cs
- NetCodeGroup.cs
- CodeTryCatchFinallyStatement.cs
- DataGridItemEventArgs.cs
- StringDictionary.cs
- FormatConvertedBitmap.cs
- XmlLanguageConverter.cs
- IdentityNotMappedException.cs
- MarkupObject.cs
- BoundConstants.cs
- DropShadowEffect.cs
- ObjectNotFoundException.cs
- VisualTarget.cs
- RepeatButton.cs
- WindowsButton.cs
- BuildDependencySet.cs
- Int32CAMarshaler.cs
- FrameworkElementAutomationPeer.cs
- RightsManagementResourceHelper.cs
- DescendantOverDescendantQuery.cs
- DocumentOrderComparer.cs
- DataGridViewLinkCell.cs
- XmlEncodedRawTextWriter.cs
- PermissionToken.cs
- _NestedSingleAsyncResult.cs
- XmlQualifiedNameTest.cs
- ListViewTableRow.cs
- Preprocessor.cs
- SingleAnimationBase.cs
- MenuItemStyle.cs
- ThemeDirectoryCompiler.cs
- TextEndOfParagraph.cs
- ListViewTableRow.cs
- DelayedRegex.cs
- SelectingProviderEventArgs.cs
- TimeSpanValidatorAttribute.cs
- SecureConversationServiceElement.cs
- XmlSchemaAll.cs
- DeviceFiltersSection.cs
- SchemaTableColumn.cs
- PrincipalPermission.cs
- CounterSample.cs
- TrustLevelCollection.cs
- PrintPreviewDialog.cs
- AuthenticationException.cs
- SQLDateTimeStorage.cs
- GiveFeedbackEventArgs.cs
- TypeDelegator.cs
- InvalidProgramException.cs
- XmlSchemaCollection.cs
- StructuralObject.cs
- fixedPageContentExtractor.cs
- SubMenuStyleCollectionEditor.cs
- RegexCode.cs
- TemplatedControlDesigner.cs
- LambdaCompiler.Expressions.cs
- ImportCatalogPart.cs
- DocumentViewerBase.cs
- SqlDataSourceFilteringEventArgs.cs
- AudioException.cs