Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / TemplatePartAttribute.cs / 1305600 / TemplatePartAttribute.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows { ////// Style authors should be able to identify the part type used for styling the specific class. /// The part is usually required in the style and should have a specific predefined name. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] public sealed class TemplatePartAttribute : Attribute { ////// Default constructor /// public TemplatePartAttribute() { } ////// Part name used by the class to indentify required element in the style /// public string Name { get { return _name; } set { _name = value; } } ////// Type of the element that should be used as a part with name specified in TemplatePartAttribute.Name /// public Type Type { get { return _type; } set { _type = value; } } private string _name; private Type _type; } } // 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
- EdmItemCollection.cs
- VideoDrawing.cs
- DiscoveryMessageSequenceCD1.cs
- CodeObject.cs
- TableRow.cs
- ParallelRangeManager.cs
- FieldAccessException.cs
- ObjRef.cs
- FrameworkElementFactory.cs
- DataView.cs
- EdmTypeAttribute.cs
- HttpModuleActionCollection.cs
- GroupQuery.cs
- _ConnectStream.cs
- BatchServiceHost.cs
- BitmapInitialize.cs
- DeploymentSection.cs
- Effect.cs
- ContractNamespaceAttribute.cs
- PlainXmlDeserializer.cs
- MetadataArtifactLoaderResource.cs
- SystemWebCachingSectionGroup.cs
- ClientProtocol.cs
- ContentOperations.cs
- SessionStateContainer.cs
- FontCacheUtil.cs
- SqlPersonalizationProvider.cs
- ComponentResourceManager.cs
- SurrogateEncoder.cs
- BitmapEffect.cs
- WebException.cs
- DataConnectionHelper.cs
- LineGeometry.cs
- XsltLoader.cs
- TypeDescriptionProvider.cs
- FastPropertyAccessor.cs
- AffineTransform3D.cs
- LayoutEngine.cs
- XmlSchemaAttribute.cs
- Triangle.cs
- _LocalDataStore.cs
- MaskedTextBox.cs
- SizeF.cs
- UInt16.cs
- WindowsTooltip.cs
- Calendar.cs
- ConfigXmlText.cs
- ModelVisual3D.cs
- ActivityExecutionWorkItem.cs
- typedescriptorpermission.cs
- EllipseGeometry.cs
- RowUpdatingEventArgs.cs
- ObjectToken.cs
- ManagementQuery.cs
- ActivityXamlServices.cs
- Vector3DCollectionConverter.cs
- EventHandlerService.cs
- DataGridCommandEventArgs.cs
- EpmCustomContentDeSerializer.cs
- RouteValueExpressionBuilder.cs
- StringHandle.cs
- DotAtomReader.cs
- PagerSettings.cs
- XmlQueryType.cs
- brushes.cs
- EmbossBitmapEffect.cs
- SiteMapProvider.cs
- ResourceManagerWrapper.cs
- ClaimComparer.cs
- ProjectedWrapper.cs
- Part.cs
- XsdValidatingReader.cs
- DurableEnlistmentState.cs
- SecurityResources.cs
- UITypeEditor.cs
- ConfigurationSectionGroupCollection.cs
- KeyedQueue.cs
- Application.cs
- TransformBlockRequest.cs
- propertyentry.cs
- PrintDocument.cs
- TileBrush.cs
- PopupRootAutomationPeer.cs
- SelectionProviderWrapper.cs
- RayHitTestParameters.cs
- UnaryNode.cs
- uribuilder.cs
- SafeHandles.cs
- Pen.cs
- ZipPackage.cs
- KeyValueConfigurationCollection.cs
- SplashScreen.cs
- TextBox.cs
- NoClickablePointException.cs
- PersonalizationState.cs
- EventManager.cs
- XmlValidatingReader.cs
- WindowsContainer.cs
- Underline.cs
- SqlExpander.cs