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
- XPathAxisIterator.cs
- ClientConfigurationSystem.cs
- httpserverutility.cs
- ProfileGroupSettingsCollection.cs
- CommonProperties.cs
- NativeMethods.cs
- Base64WriteStateInfo.cs
- X509AsymmetricSecurityKey.cs
- mda.cs
- BackgroundFormatInfo.cs
- LookupNode.cs
- InvariantComparer.cs
- PrePrepareMethodAttribute.cs
- RequestCacheEntry.cs
- Expr.cs
- ValidatingPropertiesEventArgs.cs
- Assert.cs
- UnconditionalPolicy.cs
- ComponentEditorPage.cs
- XmlSchemaGroupRef.cs
- FloaterParaClient.cs
- TextTreeRootTextBlock.cs
- DeploymentSectionCache.cs
- DocumentPage.cs
- LineServicesCallbacks.cs
- WindowsProgressbar.cs
- MultiplexingFormatMapping.cs
- RawMouseInputReport.cs
- FunctionUpdateCommand.cs
- CursorInteropHelper.cs
- DataServiceEntityAttribute.cs
- BufferedReadStream.cs
- Pen.cs
- ConfigsHelper.cs
- DataError.cs
- EntitySqlException.cs
- HtmlAnchor.cs
- ValidatedControlConverter.cs
- CngKeyBlobFormat.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- StrokeNode.cs
- FunctionMappingTranslator.cs
- DataGridRow.cs
- COM2ComponentEditor.cs
- HtmlListAdapter.cs
- BevelBitmapEffect.cs
- NativeCppClassAttribute.cs
- Lease.cs
- DataGridHeaderBorder.cs
- SizeF.cs
- ScrollPatternIdentifiers.cs
- AutomationPeer.cs
- SharedPersonalizationStateInfo.cs
- CodeVariableDeclarationStatement.cs
- HelpEvent.cs
- EastAsianLunisolarCalendar.cs
- XPathMultyIterator.cs
- COM2ComponentEditor.cs
- RequestCachePolicy.cs
- SurrogateSelector.cs
- TraceSection.cs
- HostProtectionPermission.cs
- XmlSchemaAnyAttribute.cs
- RuntimeEnvironment.cs
- ClientSettingsProvider.cs
- SystemMulticastIPAddressInformation.cs
- BypassElement.cs
- DataBindEngine.cs
- InternalConfigEventArgs.cs
- TitleStyle.cs
- ISAPIWorkerRequest.cs
- ModuleBuilder.cs
- ToolBarPanel.cs
- SmtpClient.cs
- SqlRecordBuffer.cs
- DataPointer.cs
- ChunkedMemoryStream.cs
- SplineQuaternionKeyFrame.cs
- DecoratedNameAttribute.cs
- _FtpDataStream.cs
- DataControlFieldHeaderCell.cs
- TimeoutValidationAttribute.cs
- TraceHandler.cs
- OperationInfo.cs
- SqlError.cs
- SolidBrush.cs
- DataGridItemCollection.cs
- RecognitionEventArgs.cs
- DependencyPropertyKey.cs
- WSSecurityOneDotOneReceiveSecurityHeader.cs
- FormViewInsertEventArgs.cs
- ProxyAttribute.cs
- EpmTargetPathSegment.cs
- WebPartCloseVerb.cs
- HttpProcessUtility.cs
- Int64Converter.cs
- PrePostDescendentsWalker.cs
- ScaleTransform3D.cs
- Range.cs
- ContentPlaceHolder.cs