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
- CalendarDataBindingHandler.cs
- ServicePointManager.cs
- BufferedGraphics.cs
- AnnotationResourceChangedEventArgs.cs
- SoapInteropTypes.cs
- AdapterUtil.cs
- RangeValidator.cs
- SecondaryIndexDefinition.cs
- NavigatorOutput.cs
- XsdValidatingReader.cs
- Effect.cs
- FrameworkTextComposition.cs
- UrlMapping.cs
- FakeModelItemImpl.cs
- WebResourceAttribute.cs
- OleCmdHelper.cs
- Emitter.cs
- AdornerDecorator.cs
- ComponentCollection.cs
- Assert.cs
- FragmentNavigationEventArgs.cs
- _IPv4Address.cs
- RelationshipWrapper.cs
- EndpointConfigContainer.cs
- Journal.cs
- Utils.cs
- ValidationPropertyAttribute.cs
- FormView.cs
- DataGridTextBox.cs
- FactoryId.cs
- SafeProcessHandle.cs
- PackagePartCollection.cs
- Action.cs
- TextRangeEditLists.cs
- _NegoStream.cs
- FrameworkPropertyMetadata.cs
- DocumentPageViewAutomationPeer.cs
- Root.cs
- SiteMapHierarchicalDataSourceView.cs
- ExcludeFromCodeCoverageAttribute.cs
- SqlColumnizer.cs
- LinqDataSourceSelectEventArgs.cs
- CodeNamespaceCollection.cs
- WebBrowsableAttribute.cs
- RowUpdatedEventArgs.cs
- GenericRootAutomationPeer.cs
- CursorEditor.cs
- FormViewDeleteEventArgs.cs
- ScriptRegistrationManager.cs
- HierarchicalDataBoundControlAdapter.cs
- MethodResolver.cs
- SvcMapFile.cs
- LambdaCompiler.Expressions.cs
- Simplifier.cs
- GradientBrush.cs
- CustomLineCap.cs
- DecoderFallback.cs
- CompilationUnit.cs
- XmlElementAttributes.cs
- EventData.cs
- ErrorTableItemStyle.cs
- UserControl.cs
- ResourceExpression.cs
- DelimitedListTraceListener.cs
- XmlStreamNodeWriter.cs
- CodeCommentStatement.cs
- StatusBarItemAutomationPeer.cs
- GridViewUpdatedEventArgs.cs
- BaseComponentEditor.cs
- BaseAutoFormat.cs
- ParameterCollection.cs
- DbProviderManifest.cs
- DefaultValueConverter.cs
- XmlReflectionMember.cs
- ExtensibleClassFactory.cs
- PartialCachingControl.cs
- CachedCompositeFamily.cs
- CompositeFontParser.cs
- DetailsViewPageEventArgs.cs
- SctClaimDictionary.cs
- DispatcherTimer.cs
- Drawing.cs
- CollectionBase.cs
- DataGridViewCheckBoxColumn.cs
- PasswordTextContainer.cs
- PrePostDescendentsWalker.cs
- WebScriptEndpointElement.cs
- RuleSet.cs
- Select.cs
- DataKey.cs
- SystemColors.cs
- InternalPermissions.cs
- SecurityDocument.cs
- CustomAttributeSerializer.cs
- handlecollector.cs
- EncryptedType.cs
- SpeechSynthesizer.cs
- Configuration.cs
- SectionXmlInfo.cs
- DataList.cs