Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / Localizer / BamlLocalizabilityResolver.cs / 1305600 / 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
- DefaultTextStoreTextComposition.cs
- MemberJoinTreeNode.cs
- CodeConstructor.cs
- ProviderUtil.cs
- MasterPage.cs
- HostingEnvironmentSection.cs
- WebPartCollection.cs
- SqlRowUpdatingEvent.cs
- ObjectStateFormatter.cs
- Path.cs
- DynamicScriptObject.cs
- MarkupProperty.cs
- SoapTypeAttribute.cs
- SemanticBasicElement.cs
- HeaderPanel.cs
- RuleConditionDialog.cs
- ContainerCodeDomSerializer.cs
- HierarchicalDataSourceDesigner.cs
- DataGridViewRowHeaderCell.cs
- ContactManager.cs
- HttpWebRequest.cs
- SizeAnimation.cs
- AccessibleObject.cs
- SqlGatherProducedAliases.cs
- BrowserCapabilitiesFactory35.cs
- ActiveDocumentEvent.cs
- IDQuery.cs
- __ComObject.cs
- BrowserTree.cs
- IApplicationTrustManager.cs
- UrlPath.cs
- HttpException.cs
- DeviceFilterDictionary.cs
- FormattedText.cs
- CubicEase.cs
- UserControlBuildProvider.cs
- TextSelection.cs
- PhysicalFontFamily.cs
- BCLDebug.cs
- CodeAttributeArgumentCollection.cs
- EmbeddedObject.cs
- SecurityHeader.cs
- IxmlLineInfo.cs
- SqlDataSourceConfigureSortForm.cs
- CornerRadiusConverter.cs
- RepeatBehaviorConverter.cs
- ToolStripKeyboardHandlingService.cs
- GeneralTransform.cs
- DesignSurface.cs
- SerializeAbsoluteContext.cs
- Grid.cs
- Accessors.cs
- ExtensibleClassFactory.cs
- NameValuePermission.cs
- SQLMembershipProvider.cs
- TreeNodeEventArgs.cs
- MatrixTransform3D.cs
- AssemblyAttributesGoHere.cs
- ReplyAdapterChannelListener.cs
- AnnotationHelper.cs
- UserNamePasswordValidator.cs
- NestedContainer.cs
- BidirectionalDictionary.cs
- ChineseLunisolarCalendar.cs
- DES.cs
- BoundPropertyEntry.cs
- ReferenceSchema.cs
- EntityException.cs
- SetStoryboardSpeedRatio.cs
- ResXBuildProvider.cs
- PenLineJoinValidation.cs
- EnterpriseServicesHelper.cs
- SecurityAppliedMessage.cs
- App.cs
- SiteMapNodeCollection.cs
- DateTimeFormatInfoScanner.cs
- _BufferOffsetSize.cs
- AccessorTable.cs
- SqlRowUpdatingEvent.cs
- LayoutDump.cs
- counter.cs
- VectorCollection.cs
- latinshape.cs
- BaseParser.cs
- FileInfo.cs
- XamlTemplateSerializer.cs
- DocumentGridPage.cs
- ServiceEndpoint.cs
- XPathScanner.cs
- BitmapEffect.cs
- QuaternionRotation3D.cs
- NotifyIcon.cs
- Nodes.cs
- RepeaterItemEventArgs.cs
- Mutex.cs
- MaskedTextBoxTextEditorDropDown.cs
- securitycriticaldata.cs
- FontSizeConverter.cs
- FormClosedEvent.cs
- DefaultObjectMappingItemCollection.cs