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
- DataListGeneralPage.cs
- AtomServiceDocumentSerializer.cs
- BamlResourceDeserializer.cs
- ConstantExpression.cs
- ColumnMapVisitor.cs
- DocumentPaginator.cs
- TrackingDataItemValue.cs
- DispatcherEventArgs.cs
- CheckBoxAutomationPeer.cs
- TextProviderWrapper.cs
- DataRecord.cs
- AvtEvent.cs
- IssuedSecurityTokenParameters.cs
- X509ThumbprintKeyIdentifierClause.cs
- TransactionManager.cs
- AssemblyCache.cs
- NavigationService.cs
- XmlQuerySequence.cs
- OleDbReferenceCollection.cs
- WizardPanelChangingEventArgs.cs
- TextSelection.cs
- FontUnit.cs
- PreProcessInputEventArgs.cs
- GridViewCancelEditEventArgs.cs
- PackWebResponse.cs
- CipherData.cs
- PageStatePersister.cs
- ThousandthOfEmRealPoints.cs
- ImmutableObjectAttribute.cs
- CommandDevice.cs
- Privilege.cs
- DbDataRecord.cs
- BinHexDecoder.cs
- SecurityPermission.cs
- MouseDevice.cs
- RunWorkerCompletedEventArgs.cs
- Decoder.cs
- ConstructorNeedsTagAttribute.cs
- HostedImpersonationContext.cs
- PageThemeBuildProvider.cs
- EdmTypeAttribute.cs
- XmlWrappingReader.cs
- DateTimePickerDesigner.cs
- Fonts.cs
- List.cs
- DoubleLinkListEnumerator.cs
- CollectionType.cs
- SystemTcpStatistics.cs
- SuppressIldasmAttribute.cs
- DispatchChannelSink.cs
- ResourcesBuildProvider.cs
- StringArrayConverter.cs
- WrappedIUnknown.cs
- BindingContext.cs
- PermissionListSet.cs
- StaticFileHandler.cs
- PenThreadPool.cs
- StatusBarItem.cs
- SchemaType.cs
- AssemblyCollection.cs
- SkinIDTypeConverter.cs
- BaseCollection.cs
- PeerEndPoint.cs
- DigitShape.cs
- HMACSHA512.cs
- SetIterators.cs
- ObservableCollectionDefaultValueFactory.cs
- dbdatarecord.cs
- TypeReference.cs
- SqlUserDefinedTypeAttribute.cs
- AsyncOperationManager.cs
- Package.cs
- ArrangedElementCollection.cs
- RangeValueProviderWrapper.cs
- Calendar.cs
- BaseComponentEditor.cs
- MultiBinding.cs
- GridViewPageEventArgs.cs
- PrintControllerWithStatusDialog.cs
- RouteUrlExpressionBuilder.cs
- MdiWindowListItemConverter.cs
- DynamicField.cs
- NativeMethods.cs
- ProfileService.cs
- LassoSelectionBehavior.cs
- MessageBuffer.cs
- WebPartDisplayModeCancelEventArgs.cs
- FacetValueContainer.cs
- WebResourceUtil.cs
- DoubleMinMaxAggregationOperator.cs
- TreeViewBindingsEditor.cs
- QuerySettings.cs
- ArrayWithOffset.cs
- HMAC.cs
- HandlerFactoryCache.cs
- InvalidCastException.cs
- DisplayMemberTemplateSelector.cs
- PageAction.cs
- DesignerSerializationManager.cs
- DbParameterCollectionHelper.cs