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
- Rect3DValueSerializer.cs
- CodeArrayIndexerExpression.cs
- ObjectDataSourceStatusEventArgs.cs
- PackagePartCollection.cs
- ContainerControl.cs
- ItemContainerPattern.cs
- Point3DAnimationUsingKeyFrames.cs
- ScriptManager.cs
- BookmarkResumptionRecord.cs
- XPathNodeInfoAtom.cs
- TransactionBridgeSection.cs
- BitmapEffectGroup.cs
- DbDataRecord.cs
- DeclaredTypeElement.cs
- DrawingGroupDrawingContext.cs
- ObjectStateEntry.cs
- ProfileInfo.cs
- Pen.cs
- DataControlImageButton.cs
- FixedFindEngine.cs
- WSFederationHttpBindingElement.cs
- DrawingVisualDrawingContext.cs
- UdpDuplexChannel.cs
- TimelineGroup.cs
- EncryptedData.cs
- MobileCategoryAttribute.cs
- OperatingSystem.cs
- SapiRecognizer.cs
- UnmanagedMemoryStream.cs
- SerializationObjectManager.cs
- LogicalExpressionEditor.cs
- BaseTemplateParser.cs
- XslCompiledTransform.cs
- Paragraph.cs
- CombinedTcpChannel.cs
- AddInEnvironment.cs
- RequestResizeEvent.cs
- SoapObjectReader.cs
- TransformConverter.cs
- LogLogRecordHeader.cs
- HttpRequestWrapper.cs
- ThreadAbortException.cs
- DrawingState.cs
- ProxyElement.cs
- ProxyWebPartConnectionCollection.cs
- BaseParaClient.cs
- UIElementCollection.cs
- KeyedByTypeCollection.cs
- WebPartConnectionsCloseVerb.cs
- ExtendedPropertyInfo.cs
- PeerApplication.cs
- Maps.cs
- OdbcErrorCollection.cs
- OracleCommand.cs
- ConfigurationLocation.cs
- PropagatorResult.cs
- ForwardPositionQuery.cs
- ApplicationSettingsBase.cs
- CreatingCookieEventArgs.cs
- SourceFileBuildProvider.cs
- DBCommand.cs
- TextBoxAutomationPeer.cs
- Menu.cs
- ClientOptions.cs
- SmiMetaData.cs
- LoginNameDesigner.cs
- AssemblyFilter.cs
- Listener.cs
- ByteStack.cs
- CachedTypeface.cs
- Misc.cs
- XmlIgnoreAttribute.cs
- KnownBoxes.cs
- SqlNotificationEventArgs.cs
- ActivityExecutor.cs
- NameValuePair.cs
- GridPattern.cs
- WindowsFont.cs
- XmlQueryContext.cs
- Atom10FormatterFactory.cs
- CodeDirectoryCompiler.cs
- Point3DConverter.cs
- XmlDocumentViewSchema.cs
- WebPartConnectionsCancelEventArgs.cs
- EditingMode.cs
- RemotingConfigParser.cs
- Int16AnimationUsingKeyFrames.cs
- XmlChildNodes.cs
- ViewStateChangedEventArgs.cs
- _SslStream.cs
- WorkflowInstanceQuery.cs
- Roles.cs
- SoapSchemaMember.cs
- Scanner.cs
- RecordManager.cs
- KeyPressEvent.cs
- CompilationSection.cs
- ErrorsHelper.cs
- tibetanshape.cs
- Speller.cs