Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Base / System / Windows / Markup / XmlLangPropertyAttribute.cs / 1 / XmlLangPropertyAttribute.cs
//---------------------------------------------------------------------------- // // File: XmlLangPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the xml:lang attribute from the XML markup file. // // Example: // [XmlLangProperty("Language")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Language" property with the value "en-US". // // // Copyright (C) by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { /// /// An attribute that specifies which property the xml:lang value should /// be directed to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class XmlLangPropertyAttribute : Attribute { ////// Creates a new XmlLangPropertyAttribute with the given string /// as the property name. /// public XmlLangPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the xml:lang value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the xml:lang value private string _name = null; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: XmlLangPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the xml:lang attribute from the XML markup file. // // Example: // [XmlLangProperty("Language")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Language" property with the value "en-US". // // // Copyright (C) by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { /// /// An attribute that specifies which property the xml:lang value should /// be directed to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class XmlLangPropertyAttribute : Attribute { ////// Creates a new XmlLangPropertyAttribute with the given string /// as the property name. /// public XmlLangPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the xml:lang value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the xml:lang value private string _name = null; } } // 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
- TransformValueSerializer.cs
- RightsManagementEncryptedStream.cs
- SecurityCriticalDataForSet.cs
- Compress.cs
- TransformerTypeCollection.cs
- QilPatternVisitor.cs
- XmlSchema.cs
- LayoutExceptionEventArgs.cs
- EventDescriptor.cs
- QueryReaderSettings.cs
- Error.cs
- AsymmetricKeyExchangeFormatter.cs
- SqlMetaData.cs
- HostProtectionException.cs
- OperationSelectorBehavior.cs
- MasterPageParser.cs
- QilTernary.cs
- GregorianCalendarHelper.cs
- HtmlInputButton.cs
- RuntimeEnvironment.cs
- TcpTransportElement.cs
- RootBuilder.cs
- XPathNodeIterator.cs
- ProcessHostFactoryHelper.cs
- XsdCachingReader.cs
- listitem.cs
- DataSysAttribute.cs
- FixedNode.cs
- InvariantComparer.cs
- AmbientLight.cs
- SystemColors.cs
- TextEditorCharacters.cs
- BinaryMessageFormatter.cs
- ListViewHitTestInfo.cs
- CompiledXpathExpr.cs
- BitmapEffectState.cs
- DiscoveryDocumentLinksPattern.cs
- Int64Converter.cs
- DataKeyPropertyAttribute.cs
- BitStack.cs
- Path.cs
- SmtpNegotiateAuthenticationModule.cs
- ImageBrush.cs
- DesignerActionItem.cs
- ExplicitDiscriminatorMap.cs
- DllNotFoundException.cs
- DrawingServices.cs
- FixedPosition.cs
- DataGridCommandEventArgs.cs
- NetCodeGroup.cs
- XmlSerializerFactory.cs
- CreatingCookieEventArgs.cs
- PropertyNames.cs
- NativeWindow.cs
- OperatorExpressions.cs
- FileDialog_Vista_Interop.cs
- indexingfiltermarshaler.cs
- CustomDictionarySources.cs
- BindingValueChangedEventArgs.cs
- WebResponse.cs
- LambdaReference.cs
- SymbolType.cs
- PolygonHotSpot.cs
- AmbiguousMatchException.cs
- CustomAttributeBuilder.cs
- XmlQueryOutput.cs
- RectangleConverter.cs
- TextRange.cs
- DbFunctionCommandTree.cs
- TableTextElementCollectionInternal.cs
- Item.cs
- ServiceContractListItem.cs
- SQLUtility.cs
- Events.cs
- DataGridPagerStyle.cs
- Number.cs
- TreeViewCancelEvent.cs
- EventDescriptor.cs
- SqlRewriteScalarSubqueries.cs
- WebPartConnectionsCancelEventArgs.cs
- unitconverter.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ItemType.cs
- WebSysDisplayNameAttribute.cs
- MetadataSource.cs
- QueueProcessor.cs
- ConfigurationLockCollection.cs
- HttpContext.cs
- VerticalAlignConverter.cs
- MenuCommandService.cs
- GeneralTransform.cs
- MenuTracker.cs
- TransformerInfoCollection.cs
- RequestResizeEvent.cs
- ListView.cs
- EventSourceCreationData.cs
- StoreItemCollection.Loader.cs
- EditorZoneDesigner.cs
- ContextItemManager.cs
- InputLanguageManager.cs