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
- TemplateControl.cs
- ByteArrayHelperWithString.cs
- HtmlInputSubmit.cs
- DocumentManager.cs
- ResXResourceReader.cs
- ColumnHeaderConverter.cs
- SignatureHelper.cs
- BoundingRectTracker.cs
- DrawingCollection.cs
- LockCookie.cs
- ObjectItemNoOpAssemblyLoader.cs
- RoutedEventHandlerInfo.cs
- FontCacheLogic.cs
- FragmentNavigationEventArgs.cs
- HostProtectionException.cs
- XmlSchemaChoice.cs
- ImportCatalogPart.cs
- SessionPageStatePersister.cs
- PriorityBindingExpression.cs
- PathParser.cs
- ObjectCloneHelper.cs
- PrintPreviewDialog.cs
- ReferenceConverter.cs
- ThicknessConverter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CompilerTypeWithParams.cs
- MaskPropertyEditor.cs
- DynamicVirtualDiscoSearcher.cs
- TextContainerChangedEventArgs.cs
- MultiSelectRootGridEntry.cs
- NativeStructs.cs
- OracleEncoding.cs
- CollectionViewGroupInternal.cs
- DynamicEndpoint.cs
- NavigationFailedEventArgs.cs
- ContentDesigner.cs
- ListBoxItem.cs
- ValidationRuleCollection.cs
- DescendantQuery.cs
- LineVisual.cs
- ProfilePropertyNameValidator.cs
- AdRotator.cs
- LayoutUtils.cs
- TransformCollection.cs
- XmlSignatureProperties.cs
- TextSelectionProcessor.cs
- EnumerableRowCollection.cs
- DialogResultConverter.cs
- ServiceHttpHandlerFactory.cs
- DBDataPermissionAttribute.cs
- CodeObjectCreateExpression.cs
- HwndTarget.cs
- OperationAbortedException.cs
- DataGridComboBoxColumn.cs
- ZipFileInfoCollection.cs
- HtmlFormWrapper.cs
- PersonalizationStateQuery.cs
- MulticastDelegate.cs
- ListChangedEventArgs.cs
- WindowsFormsSectionHandler.cs
- TopClause.cs
- GPRECTF.cs
- DataRelationPropertyDescriptor.cs
- SelectedCellsCollection.cs
- WebServiceResponseDesigner.cs
- __Filters.cs
- WebPartConnectVerb.cs
- Property.cs
- WorkerRequest.cs
- XmlAttributes.cs
- LinqDataSourceStatusEventArgs.cs
- TypeGeneratedEventArgs.cs
- TextServicesDisplayAttribute.cs
- PropertyDescriptorGridEntry.cs
- RoleService.cs
- CodeMemberProperty.cs
- QueryStringConverter.cs
- IgnoreSectionHandler.cs
- IDQuery.cs
- CallSite.cs
- XmlSerializerSection.cs
- AutomationElementIdentifiers.cs
- LinqDataSourceStatusEventArgs.cs
- OleDbCommandBuilder.cs
- PropertyAccessVisitor.cs
- SQLMembershipProvider.cs
- Compiler.cs
- Int64Animation.cs
- ACL.cs
- CultureData.cs
- HandlerFactoryCache.cs
- EncoderParameters.cs
- webproxy.cs
- EditorPartChrome.cs
- TextBoxLine.cs
- TemplatingOptionsDialog.cs
- ContainerUIElement3D.cs
- DoubleIndependentAnimationStorage.cs
- XmlnsCache.cs
- NameNode.cs