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
- EditingMode.cs
- FtpRequestCacheValidator.cs
- RequestTimeoutManager.cs
- CaseInsensitiveComparer.cs
- Font.cs
- GuidelineSet.cs
- StateBag.cs
- ToolConsole.cs
- XmlRawWriter.cs
- BaseCAMarshaler.cs
- IteratorFilter.cs
- PrintPreviewControl.cs
- SqlNotificationRequest.cs
- EnumUnknown.cs
- NativeMethods.cs
- XmlEntity.cs
- ToolStripPanelRenderEventArgs.cs
- ToolStripInSituService.cs
- ServerValidateEventArgs.cs
- FixedPageAutomationPeer.cs
- PathGeometry.cs
- CqlWriter.cs
- CollectionViewGroupRoot.cs
- BeginStoryboard.cs
- BindingMAnagerBase.cs
- ModulesEntry.cs
- SweepDirectionValidation.cs
- RuleCache.cs
- BufferModeSettings.cs
- XmlDigitalSignatureProcessor.cs
- MetadataPropertyCollection.cs
- MachineKeyConverter.cs
- DefaultObjectMappingItemCollection.cs
- MdbDataFileEditor.cs
- AuthenticationSection.cs
- DataObjectFieldAttribute.cs
- Single.cs
- SharedConnectionInfo.cs
- KnownBoxes.cs
- PageAsyncTaskManager.cs
- DeadLetterQueue.cs
- ClientType.cs
- DateTimeAutomationPeer.cs
- DispatcherExceptionFilterEventArgs.cs
- OpacityConverter.cs
- OpCodes.cs
- WebBrowserNavigatedEventHandler.cs
- XamlPoint3DCollectionSerializer.cs
- ColumnClickEvent.cs
- SchemaImporterExtension.cs
- XmlSchemaSimpleType.cs
- TypographyProperties.cs
- RectAnimationUsingKeyFrames.cs
- XmlDownloadManager.cs
- TemplateKey.cs
- RunWorkerCompletedEventArgs.cs
- CookielessData.cs
- StylusLogic.cs
- OleDbDataReader.cs
- LineGeometry.cs
- DataControlImageButton.cs
- ChineseLunisolarCalendar.cs
- UpdateRecord.cs
- CancellableEnumerable.cs
- BufferBuilder.cs
- DataControlPagerLinkButton.cs
- ActivationProxy.cs
- DocumentPageViewAutomationPeer.cs
- RulePatternOps.cs
- DocumentPageHost.cs
- SyndicationSerializer.cs
- ValueType.cs
- LabelExpression.cs
- ArithmeticException.cs
- Bezier.cs
- SeekableMessageNavigator.cs
- DoubleCollection.cs
- DiagnosticSection.cs
- EventWaitHandleSecurity.cs
- ButtonPopupAdapter.cs
- QilLiteral.cs
- ServiceOperation.cs
- FlowDocumentView.cs
- RTTrackingProfile.cs
- VsPropertyGrid.cs
- SystemIPGlobalProperties.cs
- QuerySettings.cs
- SelectionEditor.cs
- SqlFacetAttribute.cs
- AuthorizationContext.cs
- ModelUIElement3D.cs
- SystemTcpConnection.cs
- SessionStateSection.cs
- XmlSerializationGeneratedCode.cs
- WebPartCatalogAddVerb.cs
- StrongNameSignatureInformation.cs
- FileDetails.cs
- SqlAliaser.cs
- InfoCardKeyedHashAlgorithm.cs
- SchemaImporterExtensionElementCollection.cs