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
- ObjectTag.cs
- EncodingTable.cs
- MatrixIndependentAnimationStorage.cs
- GridViewColumnHeaderAutomationPeer.cs
- ClosableStream.cs
- CodeNamespace.cs
- BamlLocalizableResource.cs
- Attachment.cs
- BaseProcessProtocolHandler.cs
- InternalCompensate.cs
- AdjustableArrowCap.cs
- indexingfiltermarshaler.cs
- LocalizationParserHooks.cs
- TimeZoneNotFoundException.cs
- FormsAuthenticationEventArgs.cs
- DataSourceProvider.cs
- CodeNamespaceImportCollection.cs
- Rotation3D.cs
- ThicknessAnimationUsingKeyFrames.cs
- LabelDesigner.cs
- Simplifier.cs
- DataTableMapping.cs
- UnsafePeerToPeerMethods.cs
- MessageDecoder.cs
- WebRequestModulesSection.cs
- ResumeStoryboard.cs
- DataGridPageChangedEventArgs.cs
- PointConverter.cs
- WebBrowserNavigatingEventHandler.cs
- StopRoutingHandler.cs
- Matrix3DConverter.cs
- EqualityComparer.cs
- TaskSchedulerException.cs
- OutputCacheEntry.cs
- CharacterMetricsDictionary.cs
- XmlSchemaSimpleContentRestriction.cs
- NTAccount.cs
- HostnameComparisonMode.cs
- LogRestartAreaEnumerator.cs
- DefaultWorkflowSchedulerService.cs
- InterleavedZipPartStream.cs
- NetworkStream.cs
- RegistrationServices.cs
- ControlAdapter.cs
- ObjectPersistData.cs
- RegexInterpreter.cs
- Soap.cs
- GeometryDrawing.cs
- MbpInfo.cs
- GlyphsSerializer.cs
- DisposableCollectionWrapper.cs
- TemplateParser.cs
- DataGridColumn.cs
- DefaultPrintController.cs
- CounterSet.cs
- RemoteWebConfigurationHost.cs
- ChildrenQuery.cs
- TTSEngineTypes.cs
- SrgsDocument.cs
- TablePattern.cs
- TimeSpanMinutesConverter.cs
- validationstate.cs
- TabRenderer.cs
- ChangesetResponse.cs
- Identity.cs
- AsyncInvokeContext.cs
- RenderingEventArgs.cs
- XmlElementElement.cs
- Selection.cs
- DataGridViewColumnDesigner.cs
- ListBoxItemAutomationPeer.cs
- FrameworkContentElement.cs
- NGCSerializer.cs
- PreservationFileReader.cs
- TabControl.cs
- DeviceContexts.cs
- CodeAttributeDeclarationCollection.cs
- LinkAreaEditor.cs
- NodeFunctions.cs
- BamlResourceContent.cs
- BamlLocalizableResourceKey.cs
- TargetFrameworkUtil.cs
- FixedDocumentPaginator.cs
- CodeNamespaceCollection.cs
- DependencyObjectProvider.cs
- DataProtectionSecurityStateEncoder.cs
- TraceFilter.cs
- ElapsedEventArgs.cs
- StringFreezingAttribute.cs
- StreamGeometryContext.cs
- SimpleParser.cs
- LogAppendAsyncResult.cs
- DataRecord.cs
- PageBreakRecord.cs
- DoubleKeyFrameCollection.cs
- TextBoxLine.cs
- FillErrorEventArgs.cs
- Sentence.cs
- FloaterBaseParagraph.cs
- AnchorEditor.cs