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
- EntityContainerAssociationSet.cs
- PropertyGridEditorPart.cs
- EncodingTable.cs
- ButtonStandardAdapter.cs
- SqlDataSourceCache.cs
- Literal.cs
- StreamUpdate.cs
- Serializer.cs
- ErrorsHelper.cs
- FieldNameLookup.cs
- TreeView.cs
- ELinqQueryState.cs
- Validator.cs
- SchemaImporterExtension.cs
- Effect.cs
- RecordConverter.cs
- EncryptedXml.cs
- FragmentQueryKB.cs
- XmlSchemaChoice.cs
- SelectionRange.cs
- Encoding.cs
- CommandID.cs
- TimeoutValidationAttribute.cs
- Utils.cs
- OverflowException.cs
- PolyBezierSegment.cs
- DbLambda.cs
- ProofTokenCryptoHandle.cs
- UIElementCollection.cs
- ColumnResizeUndoUnit.cs
- HijriCalendar.cs
- TransformPattern.cs
- MasterPageCodeDomTreeGenerator.cs
- BasicExpandProvider.cs
- DependencyProperty.cs
- MappingException.cs
- BindableTemplateBuilder.cs
- NumberAction.cs
- FileUpload.cs
- AppSettingsReader.cs
- SerializationHelper.cs
- DelegateSerializationHolder.cs
- AttributeAction.cs
- XmlSerializerVersionAttribute.cs
- _OSSOCK.cs
- WriteableOnDemandPackagePart.cs
- FormClosingEvent.cs
- UpdatePanelControlTrigger.cs
- RequestResizeEvent.cs
- Line.cs
- WebUtil.cs
- CompilerState.cs
- DataSourceIDConverter.cs
- EditorResources.cs
- TreeViewDesigner.cs
- MetaColumn.cs
- SByte.cs
- Int32AnimationUsingKeyFrames.cs
- SystemWebCachingSectionGroup.cs
- EventListener.cs
- DoubleCollectionConverter.cs
- DateTimeConverter.cs
- Style.cs
- BaseDataListDesigner.cs
- ActiveDocumentEvent.cs
- StringReader.cs
- TdsRecordBufferSetter.cs
- BindableTemplateBuilder.cs
- RTLAwareMessageBox.cs
- ModelTreeEnumerator.cs
- ContainerVisual.cs
- FastPropertyAccessor.cs
- InvalidComObjectException.cs
- StylusPlugin.cs
- ListViewInsertedEventArgs.cs
- MappingSource.cs
- metadatamappinghashervisitor.cs
- Peer.cs
- AlternateView.cs
- SerializationFieldInfo.cs
- DefaultMemberAttribute.cs
- HttpConfigurationContext.cs
- SchemaElement.cs
- SecurityElement.cs
- OdbcConnectionFactory.cs
- OrderedDictionary.cs
- OleDbWrapper.cs
- Stylesheet.cs
- DispatcherOperation.cs
- SharedRuntimeState.cs
- View.cs
- NameTable.cs
- loginstatus.cs
- BigInt.cs
- UIElement.cs
- ExceptionHelpers.cs
- MulticastOption.cs
- ParallelTimeline.cs
- UInt64Storage.cs
- CharAnimationBase.cs