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
- TreeViewHitTestInfo.cs
- PageAsyncTaskManager.cs
- ComponentManagerBroker.cs
- SettingsPropertyIsReadOnlyException.cs
- CorrelationKey.cs
- StorageInfo.cs
- GZipDecoder.cs
- ManipulationInertiaStartingEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- OleStrCAMarshaler.cs
- ChooseAction.cs
- ExpressionSelection.cs
- FullTextBreakpoint.cs
- SecurityImpersonationBehavior.cs
- ToolStrip.cs
- RepeaterCommandEventArgs.cs
- VersionedStream.cs
- DebugInfoGenerator.cs
- CodeBlockBuilder.cs
- RichTextBoxContextMenu.cs
- TemplateControl.cs
- ProfessionalColors.cs
- basenumberconverter.cs
- Vector3dCollection.cs
- PolyLineSegmentFigureLogic.cs
- HelpKeywordAttribute.cs
- ObjectDataSourceChooseMethodsPanel.cs
- ParserContext.cs
- ThreadInterruptedException.cs
- NetworkCredential.cs
- CompiledRegexRunner.cs
- MediaContext.cs
- dataprotectionpermissionattribute.cs
- CompilationPass2TaskInternal.cs
- ValidationErrorEventArgs.cs
- SqlUtil.cs
- CursorConverter.cs
- HandlerFactoryWrapper.cs
- EmbossBitmapEffect.cs
- OverrideMode.cs
- RtfControls.cs
- BindingMAnagerBase.cs
- WebSysDisplayNameAttribute.cs
- FileRegion.cs
- Missing.cs
- ManipulationVelocities.cs
- HttpCachePolicyWrapper.cs
- SourceChangedEventArgs.cs
- SchemaHelper.cs
- SctClaimDictionary.cs
- InvalidFilterCriteriaException.cs
- MatrixTransform3D.cs
- LayoutEditorPart.cs
- IconConverter.cs
- AuthorizationRuleCollection.cs
- METAHEADER.cs
- AuthenticationException.cs
- TypeDelegator.cs
- sqlser.cs
- DataViewManager.cs
- ObjectListShowCommandsEventArgs.cs
- ThrowOnMultipleAssignment.cs
- ReadOnlyAttribute.cs
- ResourceType.cs
- SamlNameIdentifierClaimResource.cs
- CodeMethodInvokeExpression.cs
- ColumnHeader.cs
- Triangle.cs
- EntityDataSourceContextCreatedEventArgs.cs
- InkCanvasSelection.cs
- ProjectionPruner.cs
- NameValuePermission.cs
- TableLayoutCellPaintEventArgs.cs
- XPathDocument.cs
- OleAutBinder.cs
- ResizeGrip.cs
- StructuredTypeEmitter.cs
- VisualCollection.cs
- ThemeableAttribute.cs
- InkCanvasSelection.cs
- GridViewCommandEventArgs.cs
- DataGridAddNewRow.cs
- RectAnimationUsingKeyFrames.cs
- Frame.cs
- RegisterResponseInfo.cs
- WebServicesDescriptionAttribute.cs
- RayHitTestParameters.cs
- BindingMemberInfo.cs
- ExpressionNode.cs
- LabelAutomationPeer.cs
- MenuEventArgs.cs
- LabelTarget.cs
- ConditionedDesigner.cs
- ProgressChangedEventArgs.cs
- HttpCacheParams.cs
- MetadataArtifactLoaderCompositeFile.cs
- Int64KeyFrameCollection.cs
- HttpStreamXmlDictionaryWriter.cs
- InstanceHandleReference.cs
- CapabilitiesPattern.cs