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
- ResolveNameEventArgs.cs
- DocumentCollection.cs
- DateTimeFormatInfo.cs
- XmlReader.cs
- DataSourceProvider.cs
- CellParaClient.cs
- TypeReference.cs
- ScrollChrome.cs
- ExpressionBindingCollection.cs
- ToolBarPanel.cs
- SingleKeyFrameCollection.cs
- AbsoluteQuery.cs
- HttpProcessUtility.cs
- BoolExpressionVisitors.cs
- TrustLevel.cs
- ButtonAutomationPeer.cs
- ResourceAssociationSet.cs
- HierarchicalDataTemplate.cs
- ByteKeyFrameCollection.cs
- MemoryPressure.cs
- UrlAuthorizationModule.cs
- SiteMap.cs
- ToolStripPanelSelectionGlyph.cs
- VolatileEnlistmentMultiplexing.cs
- ResourceDefaultValueAttribute.cs
- AmbientValueAttribute.cs
- ChannelTerminatedException.cs
- ThicknessKeyFrameCollection.cs
- ClientBuildManager.cs
- DataSourceControl.cs
- MinimizableAttributeTypeConverter.cs
- BmpBitmapEncoder.cs
- EntityDataSourceSelectingEventArgs.cs
- LOSFormatter.cs
- CreateRefExpr.cs
- RemoteX509Token.cs
- VideoDrawing.cs
- StorageEntityContainerMapping.cs
- DataRecordInternal.cs
- BitmapEffectvisualstate.cs
- WebRequestModuleElement.cs
- Encoder.cs
- Container.cs
- TableItemProviderWrapper.cs
- DataGridViewControlCollection.cs
- SetIndexBinder.cs
- StandardOleMarshalObject.cs
- AnimationLayer.cs
- XPathNodeList.cs
- DetailsViewRow.cs
- PageCanvasSize.cs
- CheckoutException.cs
- XmlSchemaObjectTable.cs
- DataStreamFromComStream.cs
- StrokeCollection2.cs
- DesignerLoader.cs
- SqlGatherProducedAliases.cs
- SiteMapNodeItemEventArgs.cs
- SubqueryTrackingVisitor.cs
- DefaultSettingsSection.cs
- WpfWebRequestHelper.cs
- BinaryReader.cs
- XMLSyntaxException.cs
- HierarchicalDataSourceIDConverter.cs
- TreeViewItem.cs
- IIS7WorkerRequest.cs
- ComAdminWrapper.cs
- CodeTypeDelegate.cs
- EditingCoordinator.cs
- XmlSchema.cs
- RsaKeyGen.cs
- ColumnClickEvent.cs
- WindowsPen.cs
- EventSinkHelperWriter.cs
- MethodBuilder.cs
- StringTraceRecord.cs
- hwndwrapper.cs
- TreeIterators.cs
- ProviderCollection.cs
- StringComparer.cs
- CacheSection.cs
- NullReferenceException.cs
- WebUtil.cs
- UnmanagedMemoryAccessor.cs
- FontInfo.cs
- ObjectCloneHelper.cs
- wgx_exports.cs
- BooleanToVisibilityConverter.cs
- DateTimeParse.cs
- BulletedList.cs
- CheckBoxStandardAdapter.cs
- ActivityInfo.cs
- WorkflowWebService.cs
- LOSFormatter.cs
- InfoCardPolicy.cs
- UITypeEditor.cs
- JsonReaderWriterFactory.cs
- IncrementalCompileAnalyzer.cs
- ObjectQuery.cs
- BitmapDownload.cs