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
- BufferedOutputStream.cs
- FlowDocumentPage.cs
- GenericWebPart.cs
- BinaryObjectWriter.cs
- HtmlInputSubmit.cs
- BooleanStorage.cs
- InvokeBinder.cs
- PersonalizationState.cs
- NativeRightsManagementAPIsStructures.cs
- WebRequestModuleElement.cs
- ChangeTracker.cs
- RemotingConfiguration.cs
- JsonByteArrayDataContract.cs
- ISAPIApplicationHost.cs
- TableCellCollection.cs
- MenuAdapter.cs
- LineServicesRun.cs
- CompositeActivityValidator.cs
- DataGridViewMethods.cs
- IteratorFilter.cs
- CheckPair.cs
- OracleDateTime.cs
- WizardPanelChangingEventArgs.cs
- FrameworkContentElement.cs
- PageThemeBuildProvider.cs
- CatalogPart.cs
- ErrorEventArgs.cs
- SimpleType.cs
- LocalTransaction.cs
- ComplexBindingPropertiesAttribute.cs
- Listbox.cs
- ProviderMetadata.cs
- TileBrush.cs
- FastEncoderWindow.cs
- TokenizerHelper.cs
- RSAOAEPKeyExchangeDeformatter.cs
- IndependentAnimationStorage.cs
- EventRoute.cs
- CodeArgumentReferenceExpression.cs
- DataGridViewRowsRemovedEventArgs.cs
- HtmlCommandAdapter.cs
- ListSortDescription.cs
- _NegoState.cs
- LockCookie.cs
- ValidatorUtils.cs
- TraceSwitch.cs
- BinaryWriter.cs
- SqlMetaData.cs
- PathSegment.cs
- HtmlTableRowCollection.cs
- XmlTextAttribute.cs
- infer.cs
- OracleFactory.cs
- ComponentTray.cs
- WebServiceEnumData.cs
- InvokeMemberBinder.cs
- StringUtil.cs
- TriggerAction.cs
- SiteMap.cs
- DetailsViewPageEventArgs.cs
- FileDialogCustomPlaces.cs
- LinkUtilities.cs
- TokenBasedSetEnumerator.cs
- RemotingException.cs
- RenamedEventArgs.cs
- CustomTypeDescriptor.cs
- DataColumnPropertyDescriptor.cs
- DurableOperationAttribute.cs
- DefaultAsyncDataDispatcher.cs
- SymDocumentType.cs
- DataGridViewLayoutData.cs
- ResourceManager.cs
- DrawingAttributes.cs
- TextDecoration.cs
- AudioFormatConverter.cs
- ProfileModule.cs
- TableCell.cs
- TimeSpanOrInfiniteConverter.cs
- CombinedGeometry.cs
- RepeaterCommandEventArgs.cs
- FixedBufferAttribute.cs
- SchemaType.cs
- TransformerInfo.cs
- Binding.cs
- TextBox.cs
- MenuTracker.cs
- VirtualizingStackPanel.cs
- IndexerNameAttribute.cs
- BitmapEffectGeneralTransform.cs
- DateTimeConstantAttribute.cs
- TabControl.cs
- ObjectDataSourceFilteringEventArgs.cs
- SubstitutionList.cs
- CollectionViewGroupRoot.cs
- UTF32Encoding.cs
- DataGridViewCellValueEventArgs.cs
- DataService.cs
- Converter.cs
- SerializationStore.cs
- CatalogZone.cs