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
- DesignerProperties.cs
- AuditLogLocation.cs
- ResourceFallbackManager.cs
- PackagePartCollection.cs
- VideoDrawing.cs
- DataControlLinkButton.cs
- BooleanKeyFrameCollection.cs
- UserNameSecurityTokenParameters.cs
- BaseDataList.cs
- AssociationType.cs
- SecondaryViewProvider.cs
- DataControlLinkButton.cs
- VariableDesigner.xaml.cs
- _SingleItemRequestCache.cs
- StrokeCollectionDefaultValueFactory.cs
- ExpressionsCollectionConverter.cs
- Span.cs
- EventLogEntry.cs
- ECDiffieHellmanPublicKey.cs
- ComponentDesigner.cs
- EqualityComparer.cs
- XsdDateTime.cs
- DocumentSequenceHighlightLayer.cs
- DateTimeSerializationSection.cs
- MethodRental.cs
- TreeChangeInfo.cs
- TextTreeFixupNode.cs
- CrossAppDomainChannel.cs
- SafeWaitHandle.cs
- DBCSCodePageEncoding.cs
- ComIntegrationManifestGenerator.cs
- FormParameter.cs
- DataGridTextBox.cs
- Grant.cs
- SemanticBasicElement.cs
- DeferredElementTreeState.cs
- LayoutTable.cs
- RegexCharClass.cs
- ApplicationException.cs
- BaseCollection.cs
- SurrogateEncoder.cs
- ContainerParagraph.cs
- SRGSCompiler.cs
- SocketException.cs
- ConfigXmlSignificantWhitespace.cs
- HwndAppCommandInputProvider.cs
- GroupStyle.cs
- basecomparevalidator.cs
- CommonRemoteMemoryBlock.cs
- XmlILConstructAnalyzer.cs
- Evidence.cs
- SrgsDocumentParser.cs
- AmbiguousMatchException.cs
- ByteConverter.cs
- RelationshipDetailsRow.cs
- ComponentFactoryHelpers.cs
- SafeRightsManagementEnvironmentHandle.cs
- ExpressionBuilder.cs
- MenuItem.cs
- XPathDocumentIterator.cs
- ActiveDocumentEvent.cs
- NumberEdit.cs
- Cursor.cs
- SafeRightsManagementEnvironmentHandle.cs
- ExpressionBinding.cs
- PositiveTimeSpanValidator.cs
- HtmlElementErrorEventArgs.cs
- Monitor.cs
- MainMenu.cs
- ShaderEffect.cs
- XmlSignatureManifest.cs
- Table.cs
- CroppedBitmap.cs
- HttpRequestCacheValidator.cs
- DetailsViewModeEventArgs.cs
- UdpChannelFactory.cs
- HttpCapabilitiesSectionHandler.cs
- LicenseContext.cs
- EventMappingSettingsCollection.cs
- SinglePageViewer.cs
- AddInSegmentDirectoryNotFoundException.cs
- ItemList.cs
- Automation.cs
- ResourcePool.cs
- QilDataSource.cs
- SqlRetyper.cs
- StringFreezingAttribute.cs
- TextAction.cs
- BufferedReadStream.cs
- AuthenticationModuleElement.cs
- EnvironmentPermission.cs
- SocketAddress.cs
- xamlnodes.cs
- COM2PictureConverter.cs
- MenuAdapter.cs
- StrokeCollectionConverter.cs
- PropertyChangingEventArgs.cs
- querybuilder.cs
- TextRangeSerialization.cs
- Properties.cs