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
- PeerPresenceInfo.cs
- MessageSmuggler.cs
- columnmapkeybuilder.cs
- BitmapEncoder.cs
- HtmlTitle.cs
- InputLangChangeRequestEvent.cs
- KnownTypeDataContractResolver.cs
- Literal.cs
- GridItemProviderWrapper.cs
- SqlCharStream.cs
- OperationResponse.cs
- Context.cs
- DataSourceView.cs
- WebPartTracker.cs
- TwoPhaseCommit.cs
- CaseExpr.cs
- DataPager.cs
- PipelineModuleStepContainer.cs
- CodeTypeReference.cs
- KoreanLunisolarCalendar.cs
- InstanceNormalEvent.cs
- HttpHostedTransportConfiguration.cs
- XMLDiffLoader.cs
- SqlInternalConnection.cs
- DataGridColumn.cs
- TrackingExtract.cs
- WebCategoryAttribute.cs
- Window.cs
- XmlSerializationWriter.cs
- DrawingContext.cs
- FontFamilyConverter.cs
- ObjectListFieldCollection.cs
- PolicyLevel.cs
- BasicSecurityProfileVersion.cs
- DataControlCommands.cs
- RoutedEventHandlerInfo.cs
- SessionEndedEventArgs.cs
- LoadRetryConstantStrategy.cs
- SqlProvider.cs
- X509ChainPolicy.cs
- recordstatescratchpad.cs
- PathData.cs
- SQLDouble.cs
- FunctionDescription.cs
- XappLauncher.cs
- InputElement.cs
- QueryContinueDragEvent.cs
- TagMapCollection.cs
- Console.cs
- MetadataPropertyAttribute.cs
- Processor.cs
- VariantWrapper.cs
- AlternateViewCollection.cs
- ColumnMap.cs
- RC2CryptoServiceProvider.cs
- HotSpotCollectionEditor.cs
- RtfFormatStack.cs
- DesignerAdapterAttribute.cs
- Point3DAnimation.cs
- OleDbPropertySetGuid.cs
- SAPICategories.cs
- MessageQueue.cs
- XslVisitor.cs
- ExtentJoinTreeNode.cs
- LiteralDesigner.cs
- HtmlControlPersistable.cs
- DefaultHttpHandler.cs
- Form.cs
- DataSource.cs
- BamlRecordWriter.cs
- MeasureItemEvent.cs
- WindowsStartMenu.cs
- Dump.cs
- GeneralTransform3DCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- DependencyPropertyDescriptor.cs
- OdbcError.cs
- DragEventArgs.cs
- HostedImpersonationContext.cs
- VerificationAttribute.cs
- DataGridViewToolTip.cs
- SettingsPropertyWrongTypeException.cs
- DetailsViewDeleteEventArgs.cs
- PriorityQueue.cs
- DiscoveryClientBindingElement.cs
- PenCursorManager.cs
- RemoteWebConfigurationHostServer.cs
- RuleSettingsCollection.cs
- AutomationPattern.cs
- GroupStyle.cs
- Attributes.cs
- ToolboxService.cs
- InstanceOwnerException.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ConfigViewGenerator.cs
- ConfigurationElementCollection.cs
- Comparer.cs
- CustomError.cs
- QilParameter.cs
- FixedSOMImage.cs