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
- TypeInitializationException.cs
- XmlILConstructAnalyzer.cs
- ImageField.cs
- Normalization.cs
- CompiledQueryCacheKey.cs
- FieldTemplateFactory.cs
- PerformanceCountersElement.cs
- RangeEnumerable.cs
- TimeSpanStorage.cs
- ReferenceSchema.cs
- NativeMethods.cs
- EndPoint.cs
- InstallerTypeAttribute.cs
- StretchValidation.cs
- PackageProperties.cs
- PtsHelper.cs
- Bezier.cs
- SqlConnectionFactory.cs
- GiveFeedbackEvent.cs
- AxHost.cs
- CodeCompileUnit.cs
- DrawingBrush.cs
- FormatConvertedBitmap.cs
- TableFieldsEditor.cs
- WebPartExportVerb.cs
- Token.cs
- WebPartEditorApplyVerb.cs
- PointAnimationClockResource.cs
- XPathAncestorIterator.cs
- SystemTcpConnection.cs
- SubtreeProcessor.cs
- BlurEffect.cs
- HwndKeyboardInputProvider.cs
- TreeIterators.cs
- VirtualPathUtility.cs
- MenuCommands.cs
- StrokeCollectionConverter.cs
- EventPropertyMap.cs
- SiteMapNodeItem.cs
- HandoffBehavior.cs
- CrossContextChannel.cs
- FileFormatException.cs
- MenuItemStyle.cs
- SQLConvert.cs
- DataGridViewComboBoxColumn.cs
- PlatformCulture.cs
- InputScopeConverter.cs
- MailDefinition.cs
- Html32TextWriter.cs
- VectorCollectionConverter.cs
- SystemUdpStatistics.cs
- SqlEnums.cs
- SystemGatewayIPAddressInformation.cs
- DesignerActionHeaderItem.cs
- Int32Rect.cs
- RegexCharClass.cs
- Rectangle.cs
- AutomationPropertyInfo.cs
- ListenDesigner.cs
- EventPropertyMap.cs
- Axis.cs
- WindowsComboBox.cs
- Gdiplus.cs
- KeyboardEventArgs.cs
- webproxy.cs
- ExpressionVisitor.cs
- CompensationParticipant.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ParallelTimeline.cs
- UmAlQuraCalendar.cs
- TraceSwitch.cs
- DbInsertCommandTree.cs
- FontUnitConverter.cs
- HttpSocketManager.cs
- IndentTextWriter.cs
- DataGridPagingPage.cs
- ResXResourceSet.cs
- WindowHideOrCloseTracker.cs
- HMACRIPEMD160.cs
- XsdDuration.cs
- BadImageFormatException.cs
- ColumnPropertiesGroup.cs
- HttpListenerContext.cs
- ToolStripDropDownClosingEventArgs.cs
- SQLDoubleStorage.cs
- WindowsComboBox.cs
- RandomNumberGenerator.cs
- DataGridView.cs
- OracleLob.cs
- ImageFormatConverter.cs
- PreProcessInputEventArgs.cs
- ServiceHttpHandlerFactory.cs
- BaseParagraph.cs
- MetadataItem_Static.cs
- TextTreeText.cs
- RightsManagementEncryptedStream.cs
- DesignerView.Commands.cs
- UpdatableWrapper.cs
- HtmlInputSubmit.cs
- DeferredReference.cs