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
- SortKey.cs
- Win32Native.cs
- QueryTaskGroupState.cs
- ExtendedTransformFactory.cs
- CodeNamespaceImport.cs
- LifetimeServices.cs
- RSAPKCS1SignatureDeformatter.cs
- DiscoveryClientDocuments.cs
- SQLBytes.cs
- EntityReference.cs
- DbLambda.cs
- InternalsVisibleToAttribute.cs
- StaticSiteMapProvider.cs
- CodeTypeReference.cs
- EventRoute.cs
- EdmFunctions.cs
- CodeConstructor.cs
- CodeCatchClauseCollection.cs
- DesignerSerializationOptionsAttribute.cs
- ColorPalette.cs
- DispatcherHookEventArgs.cs
- PageRequestManager.cs
- EFTableProvider.cs
- VScrollProperties.cs
- QuestionEventArgs.cs
- PolicyException.cs
- RestClientProxyHandler.cs
- AutomationElementCollection.cs
- QuotedPrintableStream.cs
- XAMLParseException.cs
- Query.cs
- OperationCanceledException.cs
- AddingNewEventArgs.cs
- ByteAnimation.cs
- HijriCalendar.cs
- UnsafeNativeMethods.cs
- SuppressMergeCheckAttribute.cs
- StreamGeometryContext.cs
- FixedSOMTable.cs
- TextTreeInsertUndoUnit.cs
- DataContractSerializerOperationGenerator.cs
- XmlSchemaComplexContentRestriction.cs
- ImageSourceConverter.cs
- MetadataLocation.cs
- WriteTimeStream.cs
- FrameworkPropertyMetadata.cs
- AutoResetEvent.cs
- SqlIdentifier.cs
- HtmlInputButton.cs
- WsdlImporterElementCollection.cs
- Deserializer.cs
- DrawingState.cs
- TextDecorationLocationValidation.cs
- ChannelServices.cs
- SecurityToken.cs
- BindingsCollection.cs
- __ComObject.cs
- ConfigXmlWhitespace.cs
- RegistryPermission.cs
- UiaCoreProviderApi.cs
- DataServiceClientException.cs
- CounterSetInstanceCounterDataSet.cs
- OdbcError.cs
- DbTransaction.cs
- SqlSupersetValidator.cs
- SHA256Managed.cs
- SiteMapNode.cs
- WindowsListViewScroll.cs
- ClientSettingsProvider.cs
- ActivityExecutionWorkItem.cs
- InternalConfigHost.cs
- UpdatableWrapper.cs
- EndpointIdentity.cs
- EventsTab.cs
- ADRoleFactoryConfiguration.cs
- ComboBoxAutomationPeer.cs
- ModuleElement.cs
- HttpPostServerProtocol.cs
- Rect3DConverter.cs
- RuleProcessor.cs
- UrlMappingsModule.cs
- ObjectSet.cs
- DataSourceControlBuilder.cs
- VerificationException.cs
- errorpatternmatcher.cs
- OpenTypeMethods.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- CleanUpVirtualizedItemEventArgs.cs
- ColumnResizeAdorner.cs
- ClientUrlResolverWrapper.cs
- MsmqBindingElementBase.cs
- HttpCookiesSection.cs
- EntitySetBase.cs
- BamlTreeMap.cs
- PersonalizationProviderHelper.cs
- HostProtectionPermission.cs
- SHA384Managed.cs
- ButtonRenderer.cs
- SourceLineInfo.cs
- InstanceDescriptor.cs