Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- JumpItem.cs
- UriTemplateDispatchFormatter.cs
- HttpChannelBindingToken.cs
- SecurityTokenInclusionMode.cs
- CheckBoxAutomationPeer.cs
- EllipseGeometry.cs
- AutomationPropertyInfo.cs
- Type.cs
- XmlTypeMapping.cs
- UInt64.cs
- SessionStateItemCollection.cs
- TagPrefixCollection.cs
- BindingListCollectionView.cs
- ThemeableAttribute.cs
- TypeConstant.cs
- BaseTreeIterator.cs
- HwndSubclass.cs
- RestClientProxyHandler.cs
- BezierSegment.cs
- RowParagraph.cs
- MetadataFile.cs
- SqlClientMetaDataCollectionNames.cs
- SplineQuaternionKeyFrame.cs
- TreeViewHitTestInfo.cs
- TypeDescriptionProvider.cs
- ResourceReferenceKeyNotFoundException.cs
- Label.cs
- MatrixKeyFrameCollection.cs
- BinaryObjectInfo.cs
- DeflateStreamAsyncResult.cs
- TextContainerHelper.cs
- ACE.cs
- URLEditor.cs
- ComponentSerializationService.cs
- XPathSingletonIterator.cs
- DoubleStorage.cs
- FormViewUpdatedEventArgs.cs
- DataGridViewCellValidatingEventArgs.cs
- ProcessHostConfigUtils.cs
- LayoutEditorPart.cs
- WsdlBuildProvider.cs
- PolyBezierSegment.cs
- TableSectionStyle.cs
- CaseStatementSlot.cs
- TemplateContainer.cs
- SimpleType.cs
- SQlBooleanStorage.cs
- RoleGroupCollection.cs
- PropertyTab.cs
- DataSourceDesigner.cs
- LineUtil.cs
- CTreeGenerator.cs
- AcceleratedTokenProviderState.cs
- XmlMtomReader.cs
- TypeElement.cs
- DataGridViewCellCollection.cs
- MouseActionConverter.cs
- TimelineClockCollection.cs
- BooleanStorage.cs
- ControlsConfig.cs
- ListViewInsertedEventArgs.cs
- ContainerParaClient.cs
- DeclarationUpdate.cs
- HtmlInputText.cs
- PermissionRequestEvidence.cs
- ActivitySurrogate.cs
- DBPropSet.cs
- OracleInfoMessageEventArgs.cs
- Double.cs
- AudioBase.cs
- UnsafeNativeMethods.cs
- DbConnectionInternal.cs
- TimelineGroup.cs
- ChannelManager.cs
- AspNetSynchronizationContext.cs
- SqlDataSourceAdvancedOptionsForm.cs
- Light.cs
- FontStretchConverter.cs
- WindowsListView.cs
- ProcessModule.cs
- XmlSchemaAnyAttribute.cs
- TrackingProfileSerializer.cs
- CodeIdentifiers.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ParenthesizePropertyNameAttribute.cs
- HttpNamespaceReservationInstallComponent.cs
- ContentFilePart.cs
- HttpConfigurationSystem.cs
- RectAnimationUsingKeyFrames.cs
- DataServiceQueryProvider.cs
- DataGridViewImageColumn.cs
- DataTableClearEvent.cs
- SafeFileMappingHandle.cs
- ConstantSlot.cs
- Window.cs
- SizeKeyFrameCollection.cs
- HttpProfileGroupBase.cs
- XamlBuildTaskServices.cs
- DbSourceParameterCollection.cs
- InternalsVisibleToAttribute.cs