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
- FacetChecker.cs
- XmlTextAttribute.cs
- EventToken.cs
- XmlEncoding.cs
- PngBitmapDecoder.cs
- StorageFunctionMapping.cs
- XmlValidatingReader.cs
- ColorAnimationBase.cs
- TableLayoutPanelCodeDomSerializer.cs
- StaticFileHandler.cs
- BindingContext.cs
- AppearanceEditorPart.cs
- SamlAssertion.cs
- ColumnClickEvent.cs
- EventWaitHandleSecurity.cs
- InstancePersistenceCommand.cs
- UIElement3D.cs
- RenderData.cs
- HttpConfigurationContext.cs
- basemetadatamappingvisitor.cs
- EventSetterHandlerConverter.cs
- DocumentEventArgs.cs
- WebPartEditorApplyVerb.cs
- GrammarBuilderBase.cs
- OperationAbortedException.cs
- BigIntegerStorage.cs
- TcpSocketManager.cs
- StyleSelector.cs
- PageWrapper.cs
- PolyBezierSegment.cs
- SqlDataSourceRefreshSchemaForm.cs
- InlineObject.cs
- HotCommands.cs
- PeerCustomResolverBindingElement.cs
- DiscoveryClientElement.cs
- BuildDependencySet.cs
- CodeSubDirectoriesCollection.cs
- GridViewCancelEditEventArgs.cs
- HostingEnvironmentException.cs
- XPathAncestorIterator.cs
- ClrProviderManifest.cs
- XmlNotation.cs
- StringSorter.cs
- NavigationEventArgs.cs
- WebPartDisplayModeCollection.cs
- TextLineResult.cs
- Baml2006SchemaContext.cs
- CapiSymmetricAlgorithm.cs
- MLangCodePageEncoding.cs
- TypeUtil.cs
- ExpressionBuilderContext.cs
- _CookieModule.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- SerializableAttribute.cs
- ProxyHelper.cs
- ControlIdConverter.cs
- XslCompiledTransform.cs
- ManifestResourceInfo.cs
- XmlnsCompatibleWithAttribute.cs
- FormViewUpdatedEventArgs.cs
- ScriptDescriptor.cs
- _PooledStream.cs
- HTMLTextWriter.cs
- DesignerCategoryAttribute.cs
- PowerModeChangedEventArgs.cs
- Sequence.cs
- FileSystemInfo.cs
- NativeActivity.cs
- EqualityArray.cs
- SmtpSection.cs
- StoreUtilities.cs
- XsltContext.cs
- TranslateTransform3D.cs
- CryptoConfig.cs
- Point3DValueSerializer.cs
- DiagnosticsConfiguration.cs
- ZipIOLocalFileDataDescriptor.cs
- SemanticResolver.cs
- ClientSettingsSection.cs
- ExceptionWrapper.cs
- SqlLiftWhereClauses.cs
- TextOutput.cs
- LingerOption.cs
- EncoderReplacementFallback.cs
- TextEditorParagraphs.cs
- COM2EnumConverter.cs
- CheckBoxPopupAdapter.cs
- TimeSpanStorage.cs
- Privilege.cs
- TextHintingModeValidation.cs
- UniqueConstraint.cs
- ScriptBehaviorDescriptor.cs
- XmlTextAttribute.cs
- Rotation3D.cs
- PersonalizationDictionary.cs
- XPathParser.cs
- XMLDiffLoader.cs
- DataMisalignedException.cs
- ValueUnavailableException.cs
- StylesEditorDialog.cs