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
- DataGridViewImageCell.cs
- SafeNativeMethodsCLR.cs
- CompilerResults.cs
- BitmapEffectGeneralTransform.cs
- SqlWorkflowPersistenceService.cs
- FlowLayout.cs
- WebEventCodes.cs
- RewritingValidator.cs
- XmlObjectSerializerReadContext.cs
- AssemblyBuilder.cs
- DispatcherTimer.cs
- CultureTable.cs
- FormView.cs
- TransformGroup.cs
- EntityKey.cs
- ScrollProviderWrapper.cs
- TemplateField.cs
- MenuItemCollectionEditorDialog.cs
- ClientType.cs
- Hyperlink.cs
- BaseAddressPrefixFilterElement.cs
- InputScopeAttribute.cs
- _Connection.cs
- TextAutomationPeer.cs
- WindowsScrollBar.cs
- FieldBuilder.cs
- SoapReflectionImporter.cs
- ItemCheckedEvent.cs
- InstancePersistenceEvent.cs
- ListBindingConverter.cs
- BitmapEffectGroup.cs
- TemplateContainer.cs
- AQNBuilder.cs
- IIS7UserPrincipal.cs
- ImmutableObjectAttribute.cs
- AutoGeneratedFieldProperties.cs
- AccessDataSource.cs
- SubMenuStyleCollectionEditor.cs
- MessageHeaderException.cs
- PathSegment.cs
- glyphs.cs
- SqlFunctions.cs
- ReadOnlyTernaryTree.cs
- IntSecurity.cs
- COSERVERINFO.cs
- EntityContainerEmitter.cs
- HttpHandlerAction.cs
- RegistryConfigurationProvider.cs
- CodeLinePragma.cs
- NetworkInterface.cs
- NTAccount.cs
- ManualResetEvent.cs
- Propagator.ExtentPlaceholderCreator.cs
- RequestUriProcessor.cs
- Floater.cs
- SystemMulticastIPAddressInformation.cs
- IImplicitResourceProvider.cs
- FontFamily.cs
- SplitterEvent.cs
- SortedList.cs
- KeyTimeConverter.cs
- TextRunCacheImp.cs
- AutoResizedEvent.cs
- CompilerParameters.cs
- regiisutil.cs
- BodyGlyph.cs
- RouteCollection.cs
- WebPartMenuStyle.cs
- HtmlForm.cs
- OutOfMemoryException.cs
- ChannelAcceptor.cs
- LoggedException.cs
- HasCopySemanticsAttribute.cs
- ButtonField.cs
- LinkConverter.cs
- LayoutInformation.cs
- EqualityComparer.cs
- VirtualPathProvider.cs
- PagerSettings.cs
- RenameRuleObjectDialog.Designer.cs
- BindingsSection.cs
- RIPEMD160.cs
- WsatServiceAddress.cs
- ConfigurationElementProperty.cs
- CallbackWrapper.cs
- DataListItem.cs
- DataListItemEventArgs.cs
- DBSchemaTable.cs
- DefaultAutoFieldGenerator.cs
- PriorityRange.cs
- Baml6Assembly.cs
- SecurityPermission.cs
- TimeStampChecker.cs
- PropertyEmitter.cs
- PageThemeBuildProvider.cs
- WindowsEditBox.cs
- recordstatescratchpad.cs
- LayoutDump.cs
- DesignerOptions.cs
- ConfigurationLocationCollection.cs