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
- ListBindingConverter.cs
- TextElementCollection.cs
- MenuRendererClassic.cs
- MemberDomainMap.cs
- TextElementEditingBehaviorAttribute.cs
- Permission.cs
- LogLogRecordEnumerator.cs
- TimeStampChecker.cs
- EventSinkHelperWriter.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- RequestBringIntoViewEventArgs.cs
- Pens.cs
- HttpCachePolicyElement.cs
- TableItemPattern.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- WebPartTransformerCollection.cs
- OleDbEnumerator.cs
- CompatibleComparer.cs
- TransformerTypeCollection.cs
- GroupBoxRenderer.cs
- ToolStripItemGlyph.cs
- DbBuffer.cs
- DataTableTypeConverter.cs
- XmlCharType.cs
- TextViewElement.cs
- TimelineCollection.cs
- HttpWriter.cs
- StatusBarDrawItemEvent.cs
- DbDataReader.cs
- Latin1Encoding.cs
- ModuleBuilderData.cs
- TrackingMemoryStream.cs
- HttpWriter.cs
- COM2PictureConverter.cs
- SslStream.cs
- ErrorsHelper.cs
- FontNamesConverter.cs
- RectangleHotSpot.cs
- TaskFormBase.cs
- AsymmetricSignatureFormatter.cs
- TransformerInfo.cs
- ComEventsSink.cs
- DataSourceUtil.cs
- SettingsPropertyWrongTypeException.cs
- RecognizerStateChangedEventArgs.cs
- MessageSmuggler.cs
- UrlAuthorizationModule.cs
- SafeNativeMethods.cs
- PassportAuthenticationEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- SignatureToken.cs
- TableCellCollection.cs
- ItemsPresenter.cs
- TreeNodeStyleCollectionEditor.cs
- MD5Cng.cs
- UserValidatedEventArgs.cs
- StorageEndPropertyMapping.cs
- XmlSerializerSection.cs
- GridEntryCollection.cs
- MessageDirection.cs
- StyleHelper.cs
- BidPrivateBase.cs
- DiagnosticStrings.cs
- MethodCallTranslator.cs
- ConfigXmlText.cs
- LinqDataView.cs
- ConfigXmlComment.cs
- Pts.cs
- GetIndexBinder.cs
- BasePattern.cs
- EmptyStringExpandableObjectConverter.cs
- HwndProxyElementProvider.cs
- ResXResourceReader.cs
- ToolStripPanelCell.cs
- EndEvent.cs
- BaseUriHelper.cs
- SmiEventSink.cs
- SimpleWorkerRequest.cs
- DynamicActionMessageFilter.cs
- IImplicitResourceProvider.cs
- ZoneButton.cs
- XmlSchemaDatatype.cs
- StyleSheet.cs
- RichTextBoxConstants.cs
- BuildResultCache.cs
- TransportSecurityHelpers.cs
- WebPartAddingEventArgs.cs
- CachedBitmap.cs
- LinkedResourceCollection.cs
- SyndicationDeserializer.cs
- XPathSelectionIterator.cs
- SecondaryViewProvider.cs
- BitmapMetadata.cs
- RoutedEventConverter.cs
- StringAnimationUsingKeyFrames.cs
- CustomError.cs
- NonValidatingSecurityTokenAuthenticator.cs
- DeclaredTypeValidator.cs
- ScriptingSectionGroup.cs
- TypedAsyncResult.cs