Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SemanticAnalyzer.cs
- TextElementCollection.cs
- Win32NamedPipes.cs
- MessageProperties.cs
- COM2PropertyDescriptor.cs
- ValueUtilsSmi.cs
- SignerInfo.cs
- LogRestartAreaEnumerator.cs
- Normalization.cs
- PagedDataSource.cs
- ImageCollectionEditor.cs
- SelectedDatesCollection.cs
- SchemaTypeEmitter.cs
- WMICapabilities.cs
- Brush.cs
- CaseDesigner.xaml.cs
- RectAnimationClockResource.cs
- DelegateSerializationHolder.cs
- VideoDrawing.cs
- Effect.cs
- RootDesignerSerializerAttribute.cs
- ServiceChannelManager.cs
- PtsPage.cs
- PermissionAttributes.cs
- MenuCommand.cs
- ProcessHost.cs
- ListItem.cs
- MsmqException.cs
- ChangeInterceptorAttribute.cs
- PageRequestManager.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- NullRuntimeConfig.cs
- ImageBrush.cs
- PropertyItem.cs
- PingReply.cs
- DataGridViewDataErrorEventArgs.cs
- HttpProfileGroupBase.cs
- bidPrivateBase.cs
- DataGridToolTip.cs
- PathGradientBrush.cs
- BitStream.cs
- ProcessThreadCollection.cs
- WeakReference.cs
- MissingFieldException.cs
- FileDialogCustomPlacesCollection.cs
- DataGridViewAccessibleObject.cs
- BaseTransportHeaders.cs
- SqlMethodCallConverter.cs
- NativeObjectSecurity.cs
- BoolExpressionVisitors.cs
- MultiPropertyDescriptorGridEntry.cs
- InternalDuplexBindingElement.cs
- AutoResetEvent.cs
- DoubleUtil.cs
- XPathQilFactory.cs
- BitmapEffect.cs
- ComplexObject.cs
- TypeToTreeConverter.cs
- KeyedHashAlgorithm.cs
- TabControlCancelEvent.cs
- BinaryConverter.cs
- FileLogRecordHeader.cs
- InputLanguageProfileNotifySink.cs
- BeginStoryboard.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- WindowsSysHeader.cs
- DataControlField.cs
- EditorBrowsableAttribute.cs
- SynchronizedInputHelper.cs
- TreePrinter.cs
- XmlC14NWriter.cs
- InstanceDescriptor.cs
- DomNameTable.cs
- SmtpTransport.cs
- FrameworkContextData.cs
- ImageSourceConverter.cs
- DesignerRegionCollection.cs
- BamlVersionHeader.cs
- StorageScalarPropertyMapping.cs
- CodeDelegateInvokeExpression.cs
- InputProviderSite.cs
- GradientBrush.cs
- Geometry.cs
- ParameterBuilder.cs
- DataTablePropertyDescriptor.cs
- EvidenceBase.cs
- PLINQETWProvider.cs
- Polygon.cs
- DBNull.cs
- ValidationResult.cs
- RegistrySecurity.cs
- DataColumnMapping.cs
- OneWayChannelFactory.cs
- WebDescriptionAttribute.cs
- InkCanvasSelection.cs
- JsonReader.cs
- ToolBarTray.cs
- SHA256Managed.cs
- SplineQuaternionKeyFrame.cs
- PropertyPushdownHelper.cs