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
- ModuleBuilderData.cs
- UnauthorizedWebPart.cs
- _ShellExpression.cs
- ImmutableObjectAttribute.cs
- ListViewSortEventArgs.cs
- CompoundFileIOPermission.cs
- DesignerVerb.cs
- SecurityUtils.cs
- DispatchChannelSink.cs
- BitStack.cs
- TraceListener.cs
- DllHostInitializer.cs
- ApplicationGesture.cs
- ProxyFragment.cs
- RecordManager.cs
- TagNameToTypeMapper.cs
- SecurityTokenAuthenticator.cs
- HttpGetProtocolReflector.cs
- ObjectParameter.cs
- HostingPreferredMapPath.cs
- NameNode.cs
- SpellerHighlightLayer.cs
- Delegate.cs
- DescendantQuery.cs
- RegistrationServices.cs
- SecurityTokenContainer.cs
- FolderBrowserDialog.cs
- EventRouteFactory.cs
- ImageConverter.cs
- XmlBoundElement.cs
- HttpModulesInstallComponent.cs
- ImageFormatConverter.cs
- HScrollBar.cs
- DbMetaDataColumnNames.cs
- DataGridPagerStyle.cs
- FileSecurity.cs
- CompModSwitches.cs
- CollectionExtensions.cs
- WebBrowserSiteBase.cs
- FontInfo.cs
- StaticSiteMapProvider.cs
- Composition.cs
- ExpressionLexer.cs
- ReadOnlyAttribute.cs
- ThreadInterruptedException.cs
- InvokeBinder.cs
- Point.cs
- ProfessionalColors.cs
- ActivityXamlServices.cs
- RangeValuePattern.cs
- WebEventTraceProvider.cs
- Formatter.cs
- Enum.cs
- TypeConverterAttribute.cs
- XmlSerializerOperationGenerator.cs
- LeaseManager.cs
- DragDeltaEventArgs.cs
- FrameAutomationPeer.cs
- HtmlLink.cs
- HttpException.cs
- FacetChecker.cs
- FieldAccessException.cs
- ToolboxCategory.cs
- XmlSerializerSection.cs
- BigInt.cs
- NamespaceQuery.cs
- OleDbTransaction.cs
- AutomationElement.cs
- JoinElimination.cs
- ICspAsymmetricAlgorithm.cs
- Exceptions.cs
- WindowsGraphics.cs
- UTF32Encoding.cs
- SimpleBitVector32.cs
- RadioButtonList.cs
- CommandValueSerializer.cs
- TextEmbeddedObject.cs
- XmlQualifiedName.cs
- webproxy.cs
- CompilerCollection.cs
- XmlSchemaGroupRef.cs
- DataBinder.cs
- SectionInformation.cs
- _SslSessionsCache.cs
- ExpressionVisitorHelpers.cs
- MultiByteCodec.cs
- ObservableCollectionDefaultValueFactory.cs
- XmlCharacterData.cs
- HostExecutionContextManager.cs
- Viewport3DVisual.cs
- WorkflowOperationAsyncResult.cs
- Column.cs
- DataReceivedEventArgs.cs
- ChtmlTextWriter.cs
- DataGridViewComboBoxColumn.cs
- BufferedStream.cs
- XmlTypeAttribute.cs
- DataGridViewBand.cs
- RuntimeResourceSet.cs
- SiteMapNodeItemEventArgs.cs