Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CanExecuteRoutedEventArgs.cs
- Deserializer.cs
- OdbcCommandBuilder.cs
- FormClosingEvent.cs
- MobileCategoryAttribute.cs
- CodeExporter.cs
- ContentPresenter.cs
- FontStretchConverter.cs
- RoleServiceManager.cs
- ColorConverter.cs
- ContainerParaClient.cs
- CachedPathData.cs
- LockCookie.cs
- DataContractSerializerMessageContractImporter.cs
- GridErrorDlg.cs
- ListBoxItem.cs
- MappableObjectManager.cs
- HttpRuntime.cs
- SequenceDesigner.cs
- AnimationException.cs
- JournalEntryStack.cs
- RuntimeIdentifierPropertyAttribute.cs
- SessionEndedEventArgs.cs
- BackgroundWorker.cs
- AutoScrollHelper.cs
- InkCanvasSelection.cs
- ObfuscationAttribute.cs
- ParentQuery.cs
- AssemblySettingAttributes.cs
- LocatorPartList.cs
- TextBoxBase.cs
- XPathBinder.cs
- ObjectViewQueryResultData.cs
- FreeFormDragDropManager.cs
- PeerNameResolver.cs
- TypeHelpers.cs
- WebControlAdapter.cs
- BindingContext.cs
- CodeSubDirectory.cs
- XmlDataLoader.cs
- ResolvedKeyFrameEntry.cs
- CodeDesigner.cs
- EventHandlingScope.cs
- IdleTimeoutMonitor.cs
- SafeRightsManagementSessionHandle.cs
- MergeFilterQuery.cs
- BlockCollection.cs
- ApplicationId.cs
- ErrorProvider.cs
- SeverityFilter.cs
- SQLBinary.cs
- XmlObjectSerializerReadContext.cs
- PlacementWorkspace.cs
- Command.cs
- SystemFonts.cs
- XPathNodeHelper.cs
- QueryCursorEventArgs.cs
- MetadataFile.cs
- DataDocumentXPathNavigator.cs
- TextPointer.cs
- TextTrailingWordEllipsis.cs
- XmlParserContext.cs
- Policy.cs
- PerfService.cs
- XmlSchemaImport.cs
- BlurEffect.cs
- MetadataItem_Static.cs
- WpfXamlLoader.cs
- Literal.cs
- EntityClientCacheKey.cs
- ByteStack.cs
- XmlnsCache.cs
- CompiledQuery.cs
- MetaForeignKeyColumn.cs
- TransformerTypeCollection.cs
- CopyAction.cs
- _NTAuthentication.cs
- SessionStateModule.cs
- HitTestParameters3D.cs
- InputScopeNameConverter.cs
- RowParagraph.cs
- CellConstant.cs
- Timer.cs
- NumberAction.cs
- CommandPlan.cs
- ScriptMethodAttribute.cs
- InplaceBitmapMetadataWriter.cs
- TreeIterator.cs
- FontFaceLayoutInfo.cs
- ListView.cs
- _Events.cs
- StylusEditingBehavior.cs
- MimeMapping.cs
- SponsorHelper.cs
- VariableAction.cs
- RegularExpressionValidator.cs
- XhtmlTextWriter.cs
- SecurityTokenParameters.cs
- DebuggerAttributes.cs
- FileChangesMonitor.cs