Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / TemplatePartAttribute.cs / 1 / 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. //---------------------------------------------------------------------------- // // 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
- InvokeWebService.cs
- WindowsFormsSectionHandler.cs
- AssemblyResourceLoader.cs
- FolderBrowserDialog.cs
- CodeAttributeArgumentCollection.cs
- StrokeNodeOperations.cs
- ThicknessAnimationUsingKeyFrames.cs
- OverflowException.cs
- WinEventQueueItem.cs
- SingleTagSectionHandler.cs
- DbMetaDataFactory.cs
- MatrixUtil.cs
- ToolZone.cs
- FlowLayoutSettings.cs
- TypeListConverter.cs
- ServiceDescription.cs
- NotFiniteNumberException.cs
- MailHeaderInfo.cs
- _BufferOffsetSize.cs
- AsyncInvokeContext.cs
- SafeNativeMethods.cs
- TrustLevelCollection.cs
- HtmlControl.cs
- TiffBitmapDecoder.cs
- XmlSerializationWriter.cs
- StreamBodyWriter.cs
- FileUtil.cs
- WindowsRegion.cs
- TrackingStringDictionary.cs
- XmlQualifiedName.cs
- EntityReference.cs
- AnimatedTypeHelpers.cs
- Object.cs
- IconHelper.cs
- OutKeywords.cs
- AdornerLayer.cs
- Vector.cs
- ConstNode.cs
- Polyline.cs
- IFlowDocumentViewer.cs
- FlowDocumentPaginator.cs
- NativeRecognizer.cs
- ForceCopyBuildProvider.cs
- ConstraintStruct.cs
- BrowserTree.cs
- DiscoveryRequestHandler.cs
- QilPatternFactory.cs
- PeerApplication.cs
- ObjectQuery_EntitySqlExtensions.cs
- SendingRequestEventArgs.cs
- Identity.cs
- PeerNameRecord.cs
- LongValidatorAttribute.cs
- SolidColorBrush.cs
- ActivityInterfaces.cs
- COMException.cs
- PointIndependentAnimationStorage.cs
- Interlocked.cs
- SendMailErrorEventArgs.cs
- SystemResourceKey.cs
- EntityDataSourceState.cs
- DataColumn.cs
- GCHandleCookieTable.cs
- FactoryGenerator.cs
- WebPageTraceListener.cs
- ActivityDesignerResources.cs
- DetailsViewRow.cs
- DbConnectionFactory.cs
- Encoding.cs
- ColumnTypeConverter.cs
- UnsafeNativeMethods.cs
- PermissionToken.cs
- IConvertible.cs
- BinaryParser.cs
- GeneralTransform3D.cs
- WindowClosedEventArgs.cs
- Icon.cs
- SelectionPattern.cs
- Faults.cs
- EmptyStringExpandableObjectConverter.cs
- DefaultClaimSet.cs
- FixedBufferAttribute.cs
- Point3DCollection.cs
- BufferedWebEventProvider.cs
- complextypematerializer.cs
- FormView.cs
- SqlFlattener.cs
- MergePropertyDescriptor.cs
- ObjectTag.cs
- TextSchema.cs
- WebHttpEndpoint.cs
- CustomError.cs
- MimeTypeMapper.cs
- LineGeometry.cs
- storepermissionattribute.cs
- PartManifestEntry.cs
- ToolBarButton.cs
- Model3D.cs
- CollectionViewGroup.cs
- EditingContext.cs