Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SynchronizationHandlesCodeDomSerializer.cs
- CqlParser.cs
- ListCollectionView.cs
- FileUtil.cs
- RequestDescription.cs
- ConfigurationSectionCollection.cs
- ParameterCollection.cs
- FilteredSchemaElementLookUpTable.cs
- ExtenderControl.cs
- FormsAuthenticationTicket.cs
- Options.cs
- ZoomingMessageFilter.cs
- HttpConfigurationSystem.cs
- Size.cs
- HttpApplicationStateWrapper.cs
- TraversalRequest.cs
- FixedMaxHeap.cs
- SQLBytesStorage.cs
- ReadOnlyAttribute.cs
- Triangle.cs
- XmlDataDocument.cs
- SessionParameter.cs
- TimelineCollection.cs
- XmlSchemaValidationException.cs
- Pool.cs
- BaseCollection.cs
- BatchServiceHost.cs
- EncoderExceptionFallback.cs
- TrackingLocation.cs
- CodeTypeMemberCollection.cs
- datacache.cs
- NameSpaceExtractor.cs
- TraceSection.cs
- EventRouteFactory.cs
- AndCondition.cs
- OleDbErrorCollection.cs
- ConsoleCancelEventArgs.cs
- ColorMap.cs
- StoreItemCollection.Loader.cs
- DLinqTableProvider.cs
- TextParagraphView.cs
- Base64Stream.cs
- MemoryMappedFile.cs
- SchemaElement.cs
- DbRetry.cs
- BitmapCodecInfo.cs
- FrameworkPropertyMetadata.cs
- TextTreeRootTextBlock.cs
- X509LogoTypeExtension.cs
- RegexInterpreter.cs
- TrailingSpaceComparer.cs
- CleanUpVirtualizedItemEventArgs.cs
- SqlXml.cs
- OptimizedTemplateContent.cs
- AlternationConverter.cs
- DiscoveryClientDuplexChannel.cs
- AssemblyContextControlItem.cs
- DrawingCollection.cs
- SubtreeProcessor.cs
- NameNode.cs
- UDPClient.cs
- WindowsListViewGroup.cs
- AbsoluteQuery.cs
- XmlResolver.cs
- DbReferenceCollection.cs
- TreeNodeConverter.cs
- TableCell.cs
- EdmValidator.cs
- UriPrefixTable.cs
- Assembly.cs
- FormattedText.cs
- XPathParser.cs
- TreeViewCancelEvent.cs
- JapaneseCalendar.cs
- CompilerInfo.cs
- SocketAddress.cs
- OleAutBinder.cs
- EnterpriseServicesHelper.cs
- FreezableCollection.cs
- XmlLinkedNode.cs
- TrackingWorkflowEventArgs.cs
- RequestCacheValidator.cs
- FileInfo.cs
- Logging.cs
- ResXResourceWriter.cs
- XPathAncestorIterator.cs
- SafeRightsManagementHandle.cs
- Task.cs
- TabControlCancelEvent.cs
- PenContexts.cs
- DataGrid.cs
- StoragePropertyMapping.cs
- OptimisticConcurrencyException.cs
- HostedTransportConfigurationManager.cs
- TextRangeProviderWrapper.cs
- CodeConditionStatement.cs
- TableLayoutPanelCellPosition.cs
- StrongNameMembershipCondition.cs
- ViewGenResults.cs
- BaseCollection.cs