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
- UnsafeNativeMethodsPenimc.cs
- ProfilePropertySettings.cs
- ElementNotAvailableException.cs
- LogicalChannelCollection.cs
- VectorAnimationUsingKeyFrames.cs
- TableCell.cs
- DeadCharTextComposition.cs
- Classification.cs
- WeakReferenceList.cs
- DataFormats.cs
- AllMembershipCondition.cs
- SmtpMail.cs
- HMACSHA256.cs
- ProgressBar.cs
- ConnectionStringEditor.cs
- DispatchChannelSink.cs
- DataServiceSaveChangesEventArgs.cs
- StoragePropertyMapping.cs
- rsa.cs
- StorageRoot.cs
- _CacheStreams.cs
- PenThread.cs
- cookieexception.cs
- CallSiteHelpers.cs
- NonDualMessageSecurityOverHttpElement.cs
- TemplateColumn.cs
- TableItemProviderWrapper.cs
- EncoderBestFitFallback.cs
- RegexMatch.cs
- PeerInvitationResponse.cs
- OneToOneMappingSerializer.cs
- DataSourceDescriptorCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- XmlDataSourceNodeDescriptor.cs
- ApplicationServiceManager.cs
- COSERVERINFO.cs
- SecureConversationDriver.cs
- PeerCustomResolverSettings.cs
- IsolatedStorageFile.cs
- SubtreeProcessor.cs
- ServiceOperationParameter.cs
- FileDialogCustomPlacesCollection.cs
- TypeConverterHelper.cs
- InputReportEventArgs.cs
- TextWriter.cs
- ConfigurationCollectionAttribute.cs
- MsmqMessage.cs
- Mouse.cs
- Ray3DHitTestResult.cs
- MouseGestureConverter.cs
- SetIterators.cs
- QilLoop.cs
- DataGridRow.cs
- TimeZone.cs
- ServerValidateEventArgs.cs
- HttpValueCollection.cs
- ItemChangedEventArgs.cs
- Vector3D.cs
- LocatorBase.cs
- ServerIdentity.cs
- CachedPathData.cs
- XPathAncestorQuery.cs
- HwndSourceKeyboardInputSite.cs
- ConnectionString.cs
- FontResourceCache.cs
- XmlDataSourceNodeDescriptor.cs
- PeerCustomResolverBindingElement.cs
- BmpBitmapEncoder.cs
- XmlFormatWriterGenerator.cs
- DataTemplate.cs
- GeometryModel3D.cs
- SyntaxCheck.cs
- Button.cs
- DbDataReader.cs
- relpropertyhelper.cs
- DynamicControl.cs
- MainMenu.cs
- NotifyCollectionChangedEventArgs.cs
- ScriptBehaviorDescriptor.cs
- UInt32.cs
- EmptyEnumerator.cs
- FilterableAttribute.cs
- TreeViewItem.cs
- ReflectEventDescriptor.cs
- TypedTableHandler.cs
- FontUnitConverter.cs
- IisTraceWebEventProvider.cs
- TypedTableBase.cs
- RbTree.cs
- shaperfactoryquerycacheentry.cs
- QilLiteral.cs
- PasswordTextContainer.cs
- WebBrowsableAttribute.cs
- FixedSOMTableRow.cs
- CustomPopupPlacement.cs
- CompositeScriptReference.cs
- OneOf.cs
- ProfilePropertyMetadata.cs
- ToolStripManager.cs
- sqlmetadatafactory.cs