Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SQLInt32.cs
- IIS7UserPrincipal.cs
- PrintDialog.cs
- TagPrefixCollection.cs
- TableCell.cs
- MemberProjectionIndex.cs
- HistoryEventArgs.cs
- WindowsMenu.cs
- XpsTokenContext.cs
- ContextMenu.cs
- Tracking.cs
- MimeMultiPart.cs
- ProviderConnectionPoint.cs
- FunctionImportMapping.cs
- TagMapCollection.cs
- SortDescriptionCollection.cs
- AffineTransform3D.cs
- XmlElementAttributes.cs
- DateTimeFormatInfo.cs
- RelationshipEntry.cs
- ObjectTokenCategory.cs
- DecimalConverter.cs
- SystemEvents.cs
- QueryOutputWriter.cs
- ValueSerializerAttribute.cs
- RepeatButtonAutomationPeer.cs
- _ScatterGatherBuffers.cs
- CoTaskMemUnicodeSafeHandle.cs
- TextDecorationCollection.cs
- UndoManager.cs
- AnnotationObservableCollection.cs
- TemplateInstanceAttribute.cs
- MemberHolder.cs
- PresentationAppDomainManager.cs
- MemberDescriptor.cs
- BitmapEffectInput.cs
- InlineObject.cs
- HttpRawResponse.cs
- MetabaseSettingsIis7.cs
- ComEventsInfo.cs
- ScrollData.cs
- MtomMessageEncodingElement.cs
- RefType.cs
- CodeLinePragma.cs
- WinEventWrap.cs
- ThreadStartException.cs
- HttpPostedFile.cs
- ProtocolsConfigurationHandler.cs
- Size3DValueSerializer.cs
- autovalidator.cs
- FusionWrap.cs
- ReservationCollection.cs
- DeferredSelectedIndexReference.cs
- MostlySingletonList.cs
- WebHttpSecurityElement.cs
- AnnotationComponentManager.cs
- DbQueryCommandTree.cs
- JournalEntry.cs
- ResourcePermissionBaseEntry.cs
- DocumentViewerHelper.cs
- SHA1CryptoServiceProvider.cs
- Binding.cs
- CodeExporter.cs
- PropertyToken.cs
- AnnotationAuthorChangedEventArgs.cs
- QuaternionKeyFrameCollection.cs
- HtmlSelect.cs
- PeerNameRecordCollection.cs
- ImageSourceConverter.cs
- DataObject.cs
- EntityParameter.cs
- DiscoveryUtility.cs
- SendMailErrorEventArgs.cs
- EdmItemCollection.cs
- Pair.cs
- IdentityReference.cs
- Viewport3DVisual.cs
- CanonicalXml.cs
- CodeAttributeArgumentCollection.cs
- ImagingCache.cs
- _SecureChannel.cs
- WebPartActionVerb.cs
- FormattedText.cs
- ThicknessAnimationBase.cs
- FunctionQuery.cs
- WebServiceData.cs
- DetailsViewDeleteEventArgs.cs
- SrgsSubset.cs
- TableRowCollection.cs
- PrePostDescendentsWalker.cs
- XpsFilter.cs
- Color.cs
- Vector.cs
- PointConverter.cs
- SecurityDescriptor.cs
- StylusPointPropertyId.cs
- AudioLevelUpdatedEventArgs.cs
- Bits.cs
- RadioButton.cs