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
- ListControlConvertEventArgs.cs
- StrokeCollection.cs
- BCLDebug.cs
- XmlSchemaSimpleType.cs
- Activator.cs
- XsdCachingReader.cs
- CheckedListBox.cs
- EntityConnectionStringBuilder.cs
- ConstrainedGroup.cs
- ResourceContainer.cs
- ContentTextAutomationPeer.cs
- FilteredDataSetHelper.cs
- MouseBinding.cs
- SettingsBindableAttribute.cs
- HandlerBase.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ObjectTypeMapping.cs
- DataGridViewButtonCell.cs
- SynchronizationContext.cs
- EntityDataSourceChangingEventArgs.cs
- PlacementWorkspace.cs
- BuildProviderUtils.cs
- WhileDesigner.xaml.cs
- TargetPerspective.cs
- cookiecollection.cs
- Mutex.cs
- ContentElement.cs
- WpfGeneratedKnownProperties.cs
- SiteOfOriginContainer.cs
- DBDataPermissionAttribute.cs
- PcmConverter.cs
- GridViewSelectEventArgs.cs
- EncodingTable.cs
- ErrorWebPart.cs
- EndpointDiscoveryElement.cs
- KeyboardEventArgs.cs
- JsonByteArrayDataContract.cs
- DictionaryChange.cs
- DispatchChannelSink.cs
- Evidence.cs
- UrlMappingCollection.cs
- CookielessHelper.cs
- NativeMethodsCLR.cs
- WindowsFormsSynchronizationContext.cs
- AccessibleObject.cs
- GetPageCompletedEventArgs.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- BevelBitmapEffect.cs
- X509Utils.cs
- ConfigXmlText.cs
- IpcChannelHelper.cs
- CheckBoxBaseAdapter.cs
- SmtpLoginAuthenticationModule.cs
- TextRangeAdaptor.cs
- TaskScheduler.cs
- LocalFileSettingsProvider.cs
- WindowsScroll.cs
- TextModifier.cs
- TransportChannelListener.cs
- GuidelineSet.cs
- Timer.cs
- TypeToArgumentTypeConverter.cs
- DatatypeImplementation.cs
- ExtendedPropertiesHandler.cs
- InkSerializer.cs
- Exceptions.cs
- SessionIDManager.cs
- CultureTableRecord.cs
- ImmComposition.cs
- DataColumnMappingCollection.cs
- PointLightBase.cs
- Pen.cs
- StorageAssociationSetMapping.cs
- SendKeys.cs
- DrawingState.cs
- ActivityTypeResolver.xaml.cs
- SqlUtils.cs
- WebConfigurationFileMap.cs
- ToolStripComboBox.cs
- SystemNetHelpers.cs
- SqlSelectStatement.cs
- Math.cs
- Int16Converter.cs
- CodeLabeledStatement.cs
- RotationValidation.cs
- ShaderEffect.cs
- EmptyCollection.cs
- ExtendedProtectionPolicyTypeConverter.cs
- JoinCqlBlock.cs
- RegexTypeEditor.cs
- RegionInfo.cs
- DataControlFieldCell.cs
- ValuePattern.cs
- XmlSchemaAnyAttribute.cs
- ContentElementCollection.cs
- HistoryEventArgs.cs
- CrossContextChannel.cs
- RadioButton.cs
- ToolStripSplitStackLayout.cs
- JapaneseCalendar.cs