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
- DesignerVerb.cs
- TraceLevelStore.cs
- PolyLineSegment.cs
- Single.cs
- PropertyInformation.cs
- XmlDataLoader.cs
- SoapCodeExporter.cs
- LayoutDump.cs
- TranslateTransform3D.cs
- CircleHotSpot.cs
- ApplyImportsAction.cs
- FieldCollectionEditor.cs
- BrushConverter.cs
- FormViewInsertEventArgs.cs
- SchemaExporter.cs
- DataDesignUtil.cs
- Triangle.cs
- NavigatorInput.cs
- ObjectDataSourceEventArgs.cs
- TracedNativeMethods.cs
- PlatformNotSupportedException.cs
- EntityContainerRelationshipSet.cs
- DataObjectFieldAttribute.cs
- SqlStatistics.cs
- ScrollBar.cs
- ItemsPanelTemplate.cs
- Internal.cs
- HandlerBase.cs
- PropertyGrid.cs
- TreeBuilderXamlTranslator.cs
- ReadOnlyTernaryTree.cs
- Stylesheet.cs
- ObjectIDGenerator.cs
- ServiceDescription.cs
- Validator.cs
- XomlCompilerError.cs
- TransformedBitmap.cs
- httpserverutility.cs
- ExternalCalls.cs
- ObjectItemCollection.cs
- CallbackHandler.cs
- ChangeDirector.cs
- OptimizerPatterns.cs
- _NTAuthentication.cs
- ExceptionValidationRule.cs
- QuaternionRotation3D.cs
- NotCondition.cs
- EllipseGeometry.cs
- XmlSchemaElement.cs
- ToolStripGripRenderEventArgs.cs
- AuthorizationRule.cs
- TextParaClient.cs
- sqlpipe.cs
- ToolStripItemBehavior.cs
- AutomationEventArgs.cs
- FileEnumerator.cs
- HotSpot.cs
- WpfXamlMember.cs
- SubstitutionResponseElement.cs
- TypeDescriptor.cs
- GetPageCompletedEventArgs.cs
- EFDataModelProvider.cs
- ItemContainerPattern.cs
- ListBoxChrome.cs
- ProxyFragment.cs
- JsonFormatGeneratorStatics.cs
- SocketElement.cs
- BamlTreeNode.cs
- TextDecoration.cs
- HttpModuleAction.cs
- ObjectDisposedException.cs
- HttpCapabilitiesEvaluator.cs
- streamingZipPartStream.cs
- HttpCapabilitiesSectionHandler.cs
- TcpClientSocketManager.cs
- KeyValuePair.cs
- ListViewCommandEventArgs.cs
- ExplicitDiscriminatorMap.cs
- CanonicalFontFamilyReference.cs
- XmlSerializerAssemblyAttribute.cs
- IODescriptionAttribute.cs
- RC2CryptoServiceProvider.cs
- HttpCapabilitiesEvaluator.cs
- WebPartConnectionsDisconnectVerb.cs
- RSACryptoServiceProvider.cs
- CompressEmulationStream.cs
- PenContexts.cs
- XmlSchema.cs
- OwnerDrawPropertyBag.cs
- DbReferenceCollection.cs
- SqlClientWrapperSmiStream.cs
- ResourceExpression.cs
- DirectionalLight.cs
- RepeatInfo.cs
- ReadWriteSpinLock.cs
- SourceFileBuildProvider.cs
- DecimalKeyFrameCollection.cs
- DelegateTypeInfo.cs
- DesignerActionTextItem.cs
- ContextMenuService.cs