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
- SystemNetworkInterface.cs
- EdmProviderManifest.cs
- regiisutil.cs
- DataSourceControlBuilder.cs
- SimpleExpression.cs
- BmpBitmapEncoder.cs
- AccessedThroughPropertyAttribute.cs
- DispatcherEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- PackagePartCollection.cs
- Encoder.cs
- pingexception.cs
- ReceiveCompletedEventArgs.cs
- CookieHandler.cs
- UnauthorizedWebPart.cs
- VerificationException.cs
- TransactionFlowBindingElement.cs
- XpsFontSerializationService.cs
- PopOutPanel.cs
- ListBox.cs
- XmlDeclaration.cs
- DesignerExtenders.cs
- EncryptedPackage.cs
- RadioButton.cs
- BlobPersonalizationState.cs
- URL.cs
- ActivityLocationReferenceEnvironment.cs
- GridView.cs
- NameValuePair.cs
- VectorConverter.cs
- ProgressBarRenderer.cs
- ParameterCollection.cs
- MulticastOption.cs
- ColumnMapTranslator.cs
- ToolStripDropDownButton.cs
- Wildcard.cs
- RijndaelManaged.cs
- WebPartChrome.cs
- TagMapInfo.cs
- ConfigDefinitionUpdates.cs
- SafeFileMappingHandle.cs
- XmlSchemaInfo.cs
- AssemblyCache.cs
- CodePageEncoding.cs
- SortQuery.cs
- PageRequestManager.cs
- ListBox.cs
- DataGridToolTip.cs
- ClientSettingsStore.cs
- SqlCharStream.cs
- SubstitutionList.cs
- XpsS0ValidatingLoader.cs
- ResXDataNode.cs
- CngAlgorithm.cs
- CommandField.cs
- QueuePathEditor.cs
- HttpHandlerActionCollection.cs
- SqlReorderer.cs
- BamlLocalizableResource.cs
- GroupDescription.cs
- ProxyWebPartConnectionCollection.cs
- DnsCache.cs
- TreeNodeCollection.cs
- FormViewPageEventArgs.cs
- PermissionListSet.cs
- XmlWriterSettings.cs
- LicenseManager.cs
- TemplateModeChangedEventArgs.cs
- RewritingPass.cs
- MapPathBasedVirtualPathProvider.cs
- QuaternionConverter.cs
- RadialGradientBrush.cs
- SafeCoTaskMem.cs
- ContractReference.cs
- QilSortKey.cs
- RotateTransform3D.cs
- PropertyValue.cs
- HtmlElementEventArgs.cs
- Cursor.cs
- ColorPalette.cs
- CodeGeneratorOptions.cs
- BinaryNode.cs
- OutputScopeManager.cs
- CompatibleComparer.cs
- MaskedTextProvider.cs
- OAVariantLib.cs
- RectAnimationBase.cs
- COAUTHIDENTITY.cs
- QueryOutputWriter.cs
- CellRelation.cs
- ErrorHandler.cs
- DiscoveryClientReferences.cs
- FontSourceCollection.cs
- HttpListenerPrefixCollection.cs
- InspectionWorker.cs
- Stacktrace.cs
- ValidatingPropertiesEventArgs.cs
- OutOfMemoryException.cs
- SyndicationItem.cs
- UserControlAutomationPeer.cs