Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DescriptionAttribute.cs
- ListBox.cs
- OraclePermission.cs
- OrderedDictionary.cs
- ObjectRef.cs
- SearchExpression.cs
- IMembershipProvider.cs
- TimerEventSubscriptionCollection.cs
- ChannelCacheSettings.cs
- MobileListItem.cs
- UserThread.cs
- SvcMapFileSerializer.cs
- SerializerDescriptor.cs
- UnsafeNativeMethods.cs
- Expression.cs
- FirstMatchCodeGroup.cs
- TemplatedWizardStep.cs
- Privilege.cs
- HtmlInputText.cs
- Journaling.cs
- TypedTableBaseExtensions.cs
- DrawItemEvent.cs
- InternalTypeHelper.cs
- DependencyPropertyValueSerializer.cs
- InstanceDataCollectionCollection.cs
- XmlSchemaSequence.cs
- BitmapSource.cs
- sqlstateclientmanager.cs
- ListBindingHelper.cs
- BasicExpandProvider.cs
- WebPartConnectionsEventArgs.cs
- FilterQuery.cs
- Invariant.cs
- GeneralTransformGroup.cs
- WhiteSpaceTrimStringConverter.cs
- WithStatement.cs
- SettingsPropertyIsReadOnlyException.cs
- PromptStyle.cs
- ActiveDesignSurfaceEvent.cs
- SplitContainer.cs
- SafeCertificateContext.cs
- EventMemberCodeDomSerializer.cs
- XPathQilFactory.cs
- TranslateTransform.cs
- ZipIOLocalFileDataDescriptor.cs
- LineBreak.cs
- OwnerDrawPropertyBag.cs
- ColorInterpolationModeValidation.cs
- Marshal.cs
- DocumentPageViewAutomationPeer.cs
- DataServiceHostFactory.cs
- XPathAxisIterator.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlSchemaType.cs
- SelfIssuedAuthProofToken.cs
- xsdvalidator.cs
- ProtectedConfigurationProviderCollection.cs
- PTConverter.cs
- LicenseManager.cs
- altserialization.cs
- SafeViewOfFileHandle.cs
- SingletonChannelAcceptor.cs
- RepeatEnumerable.cs
- MSHTMLHost.cs
- Visual3D.cs
- MatcherBuilder.cs
- EventProviderWriter.cs
- DataPagerCommandEventArgs.cs
- columnmapfactory.cs
- DbMetaDataFactory.cs
- ApplicationContext.cs
- ClientBuildManager.cs
- UIElement3D.cs
- RTTrackingProfile.cs
- ButtonColumn.cs
- GridViewCancelEditEventArgs.cs
- RegexCode.cs
- GeneralTransform3DGroup.cs
- Peer.cs
- TextContainer.cs
- BaseProcessor.cs
- SqlRowUpdatedEvent.cs
- CodeArgumentReferenceExpression.cs
- XmlSchemaSimpleTypeUnion.cs
- filewebresponse.cs
- Splitter.cs
- Adorner.cs
- SiteOfOriginPart.cs
- LineServicesRun.cs
- EDesignUtil.cs
- PreviewKeyDownEventArgs.cs
- ProxyAssemblyNotLoadedException.cs
- XmlObjectSerializerReadContextComplexJson.cs
- ScaleTransform.cs
- KnownBoxes.cs
- WSFederationHttpSecurityMode.cs
- CookieProtection.cs
- graph.cs
- ImageMap.cs
- UnsafeNativeMethodsMilCoreApi.cs