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
- Vector3DCollection.cs
- XPathCompiler.cs
- FloatUtil.cs
- MetadataCacheItem.cs
- TableCellsCollectionEditor.cs
- XmlAttributeCollection.cs
- Type.cs
- TextSelectionHighlightLayer.cs
- ExpressionVisitor.cs
- InfoCardHelper.cs
- PointF.cs
- TargetParameterCountException.cs
- InputProcessorProfiles.cs
- TemplatingOptionsDialog.cs
- StyleSelector.cs
- SqlProcedureAttribute.cs
- SmiContext.cs
- BindingSourceDesigner.cs
- ButtonPopupAdapter.cs
- GridViewRowPresenterBase.cs
- CodeLinePragma.cs
- TypographyProperties.cs
- WorkItem.cs
- TableSectionStyle.cs
- CacheAxisQuery.cs
- ClientUrlResolverWrapper.cs
- DbConnectionFactory.cs
- ReflectionPermission.cs
- SamlAuthenticationStatement.cs
- ReflectionServiceProvider.cs
- ToggleButtonAutomationPeer.cs
- XmlWriterSettings.cs
- XmlSchemaImporter.cs
- AsyncCompletedEventArgs.cs
- PublisherIdentityPermission.cs
- NameValueConfigurationElement.cs
- JpegBitmapEncoder.cs
- KeyValueInternalCollection.cs
- WsdlInspector.cs
- _NTAuthentication.cs
- RadioButtonStandardAdapter.cs
- DesignerObject.cs
- Stylesheet.cs
- Events.cs
- DecimalAnimation.cs
- DbCommandDefinition.cs
- SuspendDesigner.cs
- Common.cs
- DataBindingExpressionBuilder.cs
- ExpressionLexer.cs
- VariableQuery.cs
- SpeechSynthesizer.cs
- remotingproxy.cs
- SemanticAnalyzer.cs
- StatusBarDesigner.cs
- ArrayList.cs
- MembershipPasswordException.cs
- ComplexBindingPropertiesAttribute.cs
- CTreeGenerator.cs
- AssociationEndMember.cs
- DataExpression.cs
- X509CertificateClaimSet.cs
- DataControlLinkButton.cs
- WebPartConnection.cs
- DrawingContextDrawingContextWalker.cs
- RoutingConfiguration.cs
- DoubleLinkList.cs
- RegexStringValidatorAttribute.cs
- XmlSchemaIdentityConstraint.cs
- BindingManagerDataErrorEventArgs.cs
- ToolBar.cs
- WaveHeader.cs
- Mouse.cs
- KerberosTicketHashIdentifierClause.cs
- ComboBoxRenderer.cs
- ElementUtil.cs
- ResponseStream.cs
- HeaderCollection.cs
- TypeUsageBuilder.cs
- AstTree.cs
- coordinatorfactory.cs
- Button.cs
- SqlProviderServices.cs
- CodeTypeMember.cs
- util.cs
- ObjectToIdCache.cs
- HandleDictionary.cs
- EntityKeyElement.cs
- FontInfo.cs
- ResXResourceWriter.cs
- XmlNavigatorFilter.cs
- ToolTip.cs
- ToolTipService.cs
- __TransparentProxy.cs
- RegionData.cs
- storepermission.cs
- PartitionResolver.cs
- MetaForeignKeyColumn.cs
- AttributeAction.cs
- ChildrenQuery.cs