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
- ColorAnimationBase.cs
- SQLUtility.cs
- StringStorage.cs
- FamilyCollection.cs
- InstanceCreationEditor.cs
- SqlReferenceCollection.cs
- AsyncOperation.cs
- ScrollBarRenderer.cs
- EnumerableRowCollectionExtensions.cs
- ClientFactory.cs
- PassportAuthenticationEventArgs.cs
- AudioSignalProblemOccurredEventArgs.cs
- EntityDataSource.cs
- SystemIPInterfaceProperties.cs
- HtmlForm.cs
- ThemeInfoAttribute.cs
- EdmItemCollection.OcAssemblyCache.cs
- SimpleHandlerFactory.cs
- BinHexEncoder.cs
- TimeEnumHelper.cs
- ViewCellSlot.cs
- Certificate.cs
- CompilationSection.cs
- OleDbStruct.cs
- SessionEndingEventArgs.cs
- SqlDataSourceEnumerator.cs
- EnglishPluralizationService.cs
- UIElementCollection.cs
- RotationValidation.cs
- InfiniteTimeSpanConverter.cs
- graph.cs
- Decorator.cs
- IDQuery.cs
- RecordsAffectedEventArgs.cs
- SymLanguageVendor.cs
- ProviderUtil.cs
- SmiXetterAccessMap.cs
- HostSecurityManager.cs
- DataControlFieldHeaderCell.cs
- BorderSidesEditor.cs
- UnknownWrapper.cs
- RightsManagementEncryptionTransform.cs
- Evidence.cs
- TraceSwitch.cs
- XmlAttributeOverrides.cs
- IBuiltInEvidence.cs
- SmiMetaData.cs
- GlyphingCache.cs
- XmlQueryTypeFactory.cs
- RegexBoyerMoore.cs
- Stroke2.cs
- DBNull.cs
- StringAnimationBase.cs
- TempFiles.cs
- CultureInfo.cs
- XmlUtil.cs
- RootProjectionNode.cs
- MergePropertyDescriptor.cs
- ThumbButtonInfo.cs
- DbXmlEnabledProviderManifest.cs
- PropertyTab.cs
- ToolboxItemAttribute.cs
- DiagnosticStrings.cs
- RegistryKey.cs
- PartBasedPackageProperties.cs
- BufferedGraphicsManager.cs
- ConfigLoader.cs
- TreeBuilderBamlTranslator.cs
- TextModifier.cs
- DiffuseMaterial.cs
- ParameterSubsegment.cs
- DataGridPagerStyle.cs
- PresentationAppDomainManager.cs
- Win32NamedPipes.cs
- LinkConverter.cs
- MobileControlsSectionHelper.cs
- DataTableTypeConverter.cs
- XmlText.cs
- XmlMtomWriter.cs
- XmlReaderSettings.cs
- XmlSchemaSimpleTypeRestriction.cs
- ChildChangedEventArgs.cs
- ApplicationException.cs
- VisualStyleElement.cs
- BitmapFrameEncode.cs
- MetaData.cs
- HttpCacheVaryByContentEncodings.cs
- PassportAuthenticationModule.cs
- ToolboxItem.cs
- WizardStepBase.cs
- CompositionTarget.cs
- LightweightEntityWrapper.cs
- DataSourceControlBuilder.cs
- StringDictionary.cs
- DropShadowEffect.cs
- TextBoxView.cs
- TypeElement.cs
- UserNameSecurityTokenProvider.cs
- CounterSample.cs
- BaseContextMenu.cs