Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Positioning.cs
- DataSet.cs
- DesignerEditorPartChrome.cs
- RefreshEventArgs.cs
- Attachment.cs
- SortedDictionary.cs
- XpsFixedPageReaderWriter.cs
- SoapMessage.cs
- PtsHelper.cs
- BufferedStream.cs
- SqlPersonalizationProvider.cs
- ListView.cs
- BitmapEffectInputConnector.cs
- WebPartConnection.cs
- BoundsDrawingContextWalker.cs
- TrayIconDesigner.cs
- XmlQueryOutput.cs
- SaveLedgerEntryRequest.cs
- Trace.cs
- StagingAreaInputItem.cs
- LogWriteRestartAreaState.cs
- TokenBasedSet.cs
- DataGridViewCheckBoxCell.cs
- HttpListenerContext.cs
- streamingZipPartStream.cs
- ThicknessAnimationUsingKeyFrames.cs
- BamlWriter.cs
- RelationalExpressions.cs
- XhtmlBasicLiteralTextAdapter.cs
- ObjectDataSourceMethodEventArgs.cs
- ForceCopyBuildProvider.cs
- MinMaxParagraphWidth.cs
- WebPartEditorCancelVerb.cs
- BinaryObjectInfo.cs
- GradientStopCollection.cs
- DataServiceKeyAttribute.cs
- IsolatedStoragePermission.cs
- ResourceReferenceKeyNotFoundException.cs
- Base64Stream.cs
- HtmlTableCell.cs
- XmlEnumAttribute.cs
- CharacterShapingProperties.cs
- WindowsGraphics2.cs
- WebPartVerbsEventArgs.cs
- EntityTypeEmitter.cs
- HexParser.cs
- PermissionSetEnumerator.cs
- WsatServiceCertificate.cs
- SignedPkcs7.cs
- ParameterEditorUserControl.cs
- IdleTimeoutMonitor.cs
- XmlSchemaNotation.cs
- PriorityQueue.cs
- RecognizerInfo.cs
- IPHostEntry.cs
- SqlFactory.cs
- DrawingState.cs
- StyleBamlTreeBuilder.cs
- SettingsPropertyValue.cs
- FloaterParaClient.cs
- BitmapVisualManager.cs
- ObjectDataSourceFilteringEventArgs.cs
- HttpCookieCollection.cs
- WebBrowserPermission.cs
- UnsafeNativeMethods.cs
- Range.cs
- XmlUnspecifiedAttribute.cs
- RequestCacheEntry.cs
- HMAC.cs
- StylusButtonEventArgs.cs
- PrivilegedConfigurationManager.cs
- TraceRecords.cs
- MsmqHostedTransportConfiguration.cs
- ActivationServices.cs
- TextEditorTyping.cs
- CacheDependency.cs
- DependencyStoreSurrogate.cs
- RuleConditionDialog.Designer.cs
- BufferedOutputAsyncStream.cs
- SrgsRulesCollection.cs
- ScrollChrome.cs
- DataTableTypeConverter.cs
- Item.cs
- Validator.cs
- RemoteAsymmetricSignatureFormatter.cs
- SQLStringStorage.cs
- XmlSchemaComplexContent.cs
- DiscoveryClientDuplexChannel.cs
- SecureStringHasher.cs
- MouseBinding.cs
- TableDesigner.cs
- ToolboxItemFilterAttribute.cs
- CodeTypeConstructor.cs
- DataGridViewLinkColumn.cs
- DBConnection.cs
- OutKeywords.cs
- MiniParameterInfo.cs
- PrintDocument.cs
- Base64Decoder.cs
- TextEditorLists.cs