Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Markup / Localizer / BamlLocalizabilityResolver.cs / 1 / BamlLocalizabilityResolver.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: BamlLocalizabilityResolver class // // History: // 11/29/2004: [....] Created the file // 03/24/2005 [....] 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
- LayoutSettings.cs
- ListDictionary.cs
- PersianCalendar.cs
- BooleanFacetDescriptionElement.cs
- TemplateInstanceAttribute.cs
- QueryRewriter.cs
- TransportChannelFactory.cs
- SolidBrush.cs
- SqlUtils.cs
- Paragraph.cs
- QilSortKey.cs
- ReverseQueryOperator.cs
- LostFocusEventManager.cs
- MailDefinition.cs
- X509ChainElement.cs
- StylesEditorDialog.cs
- Scene3D.cs
- NodeFunctions.cs
- Visual3D.cs
- Utils.cs
- EdmSchemaAttribute.cs
- RequestNavigateEventArgs.cs
- HybridCollection.cs
- CollectionsUtil.cs
- QueryCacheEntry.cs
- HandlerBase.cs
- ModelTreeEnumerator.cs
- FontCacheUtil.cs
- PseudoWebRequest.cs
- WindowsIdentity.cs
- Errors.cs
- StylusPointPropertyInfo.cs
- ArrayWithOffset.cs
- ResourceExpressionEditor.cs
- TextOutput.cs
- Collection.cs
- Utils.cs
- RewritingValidator.cs
- TokenCreationParameter.cs
- ConnectorDragDropGlyph.cs
- AutomationEvent.cs
- EventMap.cs
- TimersDescriptionAttribute.cs
- FilteredSchemaElementLookUpTable.cs
- SynchronizedCollection.cs
- EntityViewGenerationAttribute.cs
- OracleConnectionString.cs
- DBCommand.cs
- ListenerSessionConnection.cs
- CodeComment.cs
- ViewManager.cs
- DPTypeDescriptorContext.cs
- OracleNumber.cs
- SerTrace.cs
- Exceptions.cs
- StateMachineExecutionState.cs
- TemplateXamlTreeBuilder.cs
- CalendarDataBindingHandler.cs
- DataContractJsonSerializerOperationBehavior.cs
- WebBrowser.cs
- PersistenceContextEnlistment.cs
- RtfControlWordInfo.cs
- HitTestParameters3D.cs
- WindowsToolbarItemAsMenuItem.cs
- CFStream.cs
- PerformanceCounterPermission.cs
- FieldNameLookup.cs
- ProcessDesigner.cs
- XmlSerializerSection.cs
- ToolStripSeparator.cs
- COM2EnumConverter.cs
- DelegateArgument.cs
- DocComment.cs
- CustomTypeDescriptor.cs
- basevalidator.cs
- PenContexts.cs
- StylusButtonCollection.cs
- CounterSample.cs
- UserControlAutomationPeer.cs
- transactioncontext.cs
- UIElementHelper.cs
- OdbcEnvironment.cs
- FrameworkElementFactoryMarkupObject.cs
- SessionChannels.cs
- ToolStripGrip.cs
- BasicExpressionVisitor.cs
- WorkflowDataContext.cs
- TextRange.cs
- ReachDocumentReferenceSerializer.cs
- Converter.cs
- Errors.cs
- JsonObjectDataContract.cs
- AssociationSetMetadata.cs
- AttributeCollection.cs
- TimeSpanOrInfiniteConverter.cs
- BindingSource.cs
- UnsafeNativeMethods.cs
- XmlSchemaInfo.cs
- BooleanFacetDescriptionElement.cs
- WindowsIdentity.cs