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
- EndpointIdentityConverter.cs
- ToolStripPanel.cs
- WindowsListViewGroupSubsetLink.cs
- TextRangeProviderWrapper.cs
- HttpHostedTransportConfiguration.cs
- ControlParameter.cs
- WorkflowDebuggerSteppingAttribute.cs
- SignatureDescription.cs
- GenericTypeParameterBuilder.cs
- RegisteredDisposeScript.cs
- CodeArrayIndexerExpression.cs
- Bold.cs
- PlatformNotSupportedException.cs
- ResponseStream.cs
- CodeCommentStatementCollection.cs
- LexicalChunk.cs
- RNGCryptoServiceProvider.cs
- ObjectFullSpanRewriter.cs
- FixedPageStructure.cs
- DataViewSetting.cs
- LoginStatusDesigner.cs
- Literal.cs
- XamlFilter.cs
- MemoryMappedFile.cs
- BigInt.cs
- HttpVersion.cs
- IChannel.cs
- DWriteFactory.cs
- StoreAnnotationsMap.cs
- SerialPinChanges.cs
- StaticExtensionConverter.cs
- CharacterMetricsDictionary.cs
- CodeVariableReferenceExpression.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- XmlDataLoader.cs
- DateTimeFormatInfo.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HotSpotCollection.cs
- DataTableExtensions.cs
- DoWhile.cs
- XmlBinaryReaderSession.cs
- SqlClientWrapperSmiStream.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- FtpRequestCacheValidator.cs
- IndicFontClient.cs
- ConsoleCancelEventArgs.cs
- SqlConnectionStringBuilder.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ResXResourceReader.cs
- SqlParameterCollection.cs
- DesignTimeParseData.cs
- XmlIlGenerator.cs
- AppDomainInfo.cs
- ParameterModifier.cs
- EventProxy.cs
- WebRequest.cs
- MimeXmlReflector.cs
- CheckBoxFlatAdapter.cs
- PrintController.cs
- WindowsGraphics.cs
- ToolStripProgressBar.cs
- EntityDataSourceUtil.cs
- PropertyDescriptor.cs
- log.cs
- AttachedPropertyBrowsableAttribute.cs
- SmtpAuthenticationManager.cs
- PeerContact.cs
- HexParser.cs
- InkPresenter.cs
- DoneReceivingAsyncResult.cs
- AuthenticationException.cs
- glyphs.cs
- SqlFacetAttribute.cs
- DateTimeUtil.cs
- ITextView.cs
- ConnectionStringsSection.cs
- CheckBoxRenderer.cs
- DispatcherExceptionFilterEventArgs.cs
- ProfilePropertySettings.cs
- TreeNodeBinding.cs
- ExpressionPrefixAttribute.cs
- CookielessData.cs
- TreeViewItemAutomationPeer.cs
- AspNetHostingPermission.cs
- HWStack.cs
- ObjectRef.cs
- IItemProperties.cs
- XmlSerializerVersionAttribute.cs
- ControlValuePropertyAttribute.cs
- CompareValidator.cs
- HostingPreferredMapPath.cs
- TypeBuilder.cs
- BinaryMessageFormatter.cs
- CompiledQueryCacheEntry.cs
- XmlIlTypeHelper.cs
- XmlHierarchicalDataSourceView.cs
- SoapTypeAttribute.cs
- HostedElements.cs
- FileDialogCustomPlacesCollection.cs
- WebResourceAttribute.cs