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 / UidPropertyAttribute.cs / 1 / UidPropertyAttribute.cs
//----------------------------------------------------------------------------
//
// File: UidPropertyAttribute.cs
//
// Description:
// This attribute is placed on a class to identify it as the place to set
// the value of the x:Uid attribute from the XML markup file.
//
// Example:
// [UidProperty("Uid")]
// public class ExampleFrameworkElement
//
// Means that when the parser sees:
//
//
//
// The parser will set the "Uid" property with the value "efe1".
//
//
// 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 UidPropertyAttribute : Attribute
{
///
/// Creates a new UidPropertyAttribute with the given string
/// as the property name.
///
public UidPropertyAttribute(string name)
{
_name = name;
}
///
/// The name of the property that is designated to accept the x:Uid value
///
public string Name
{
get
{
return _name;
}
}
// The name of the property that is designated to accept the x:Uid value
private string _name = null;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
// File: UidPropertyAttribute.cs
//
// Description:
// This attribute is placed on a class to identify it as the place to set
// the value of the x:Uid attribute from the XML markup file.
//
// Example:
// [UidProperty("Uid")]
// public class ExampleFrameworkElement
//
// Means that when the parser sees:
//
//
//
// The parser will set the "Uid" property with the value "efe1".
//
//
// 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 UidPropertyAttribute : Attribute
{
///
/// Creates a new UidPropertyAttribute with the given string
/// as the property name.
///
public UidPropertyAttribute(string name)
{
_name = name;
}
///
/// The name of the property that is designated to accept the x:Uid value
///
public string Name
{
get
{
return _name;
}
}
// The name of the property that is designated to accept the x:Uid 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
- DataGridViewColumn.cs
- ErrorProvider.cs
- TreeNodeStyleCollection.cs
- UIElement.cs
- NamespaceDisplay.xaml.cs
- MessageSecurityOverHttp.cs
- AmbiguousMatchException.cs
- IsolationInterop.cs
- ContainerUtilities.cs
- WeakReadOnlyCollection.cs
- InvokeMemberBinder.cs
- diagnosticsswitches.cs
- XmlNullResolver.cs
- NavigationProperty.cs
- DesignerValidatorAdapter.cs
- ColorPalette.cs
- Queue.cs
- CompoundFileDeflateTransform.cs
- DisableDpiAwarenessAttribute.cs
- DocumentXmlWriter.cs
- ImpersonationContext.cs
- SaveWorkflowAsyncResult.cs
- DataGridRow.cs
- URLAttribute.cs
- SQLDouble.cs
- TextPenaltyModule.cs
- BindingElementCollection.cs
- IndicCharClassifier.cs
- ThreadLocal.cs
- GuidConverter.cs
- DateTimeOffsetConverter.cs
- FlowDocumentScrollViewer.cs
- GrammarBuilderWildcard.cs
- XamlPoint3DCollectionSerializer.cs
- XmlAutoDetectWriter.cs
- SessionParameter.cs
- ListItemsPage.cs
- DbDataAdapter.cs
- RotateTransform.cs
- SqlCacheDependencyDatabaseCollection.cs
- UIElementIsland.cs
- BinaryWriter.cs
- WebConfigurationFileMap.cs
- ToolStripItem.cs
- DataGridTable.cs
- ColumnResizeAdorner.cs
- ConnectionManagementElement.cs
- WebPart.cs
- DBSqlParser.cs
- ControlTemplate.cs
- ValidationError.cs
- EdmValidator.cs
- GeneralTransform3D.cs
- TextProperties.cs
- ContentFilePart.cs
- NameGenerator.cs
- Literal.cs
- MD5.cs
- Stream.cs
- ScriptingProfileServiceSection.cs
- MsmqBindingFilter.cs
- DataSetMappper.cs
- DynamicPropertyHolder.cs
- MimeFormatExtensions.cs
- FormatterServices.cs
- ApplicationServiceHelper.cs
- AppDomainUnloadedException.cs
- LineSegment.cs
- XamlReader.cs
- CodeVariableDeclarationStatement.cs
- OracleDateTime.cs
- DbgUtil.cs
- Keywords.cs
- FilterUserControlBase.cs
- UIntPtr.cs
- WorkflowEnvironment.cs
- PermissionSet.cs
- DetailsViewUpdateEventArgs.cs
- AspCompat.cs
- MSHTMLHostUtil.cs
- SystemWebCachingSectionGroup.cs
- TreeViewDataItemAutomationPeer.cs
- SessionPageStateSection.cs
- AsmxEndpointPickerExtension.cs
- SortFieldComparer.cs
- Triplet.cs
- XmlObjectSerializerReadContextComplex.cs
- ECDiffieHellmanCng.cs
- HwndMouseInputProvider.cs
- InternalMappingException.cs
- HttpStreamFormatter.cs
- CompensatableSequenceActivity.cs
- SemanticResolver.cs
- HuffCodec.cs
- XmlCountingReader.cs
- InternalEnumValidator.cs
- ListViewGroup.cs
- DictionaryTraceRecord.cs
- DBDataPermissionAttribute.cs
- BaseValidatorDesigner.cs