Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- CuspData.cs
- InputBuffer.cs
- DataGridHeaderBorder.cs
- GlyphRunDrawing.cs
- HashMembershipCondition.cs
- OperatingSystem.cs
- LambdaCompiler.Generated.cs
- EntityDesignerBuildProvider.cs
- SqlCacheDependencyDatabase.cs
- XDRSchema.cs
- TextTreeInsertUndoUnit.cs
- CategoryGridEntry.cs
- MetadataCache.cs
- SmiRecordBuffer.cs
- XmlSchemaAttribute.cs
- UIElement3D.cs
- OracleColumn.cs
- CroppedBitmap.cs
- WebPartCatalogCloseVerb.cs
- MarshalByRefObject.cs
- SequentialWorkflowHeaderFooter.cs
- ScrollItemPattern.cs
- ContentPresenter.cs
- AnnotationStore.cs
- ListItemParagraph.cs
- PersistenceTypeAttribute.cs
- _NtlmClient.cs
- XmlNodeReader.cs
- BitmapEffectInputData.cs
- Style.cs
- FontWeightConverter.cs
- ColumnHeaderCollectionEditor.cs
- TextEmbeddedObject.cs
- PartialCachingControl.cs
- IDispatchConstantAttribute.cs
- HttpContextBase.cs
- SqlTransaction.cs
- DataGridViewCellStyleChangedEventArgs.cs
- EntityTemplateUserControl.cs
- DataGridViewCellEventArgs.cs
- RoleService.cs
- MiniMapControl.xaml.cs
- ExpandCollapseIsCheckedConverter.cs
- XmlWrappingReader.cs
- RemoteCryptoDecryptRequest.cs
- ListGeneralPage.cs
- HostProtectionPermission.cs
- PKCS1MaskGenerationMethod.cs
- Documentation.cs
- Font.cs
- objectquery_tresulttype.cs
- TransformBlockRequest.cs
- DelimitedListTraceListener.cs
- WebEventTraceProvider.cs
- peernodestatemanager.cs
- SqlClientMetaDataCollectionNames.cs
- LinkConverter.cs
- Baml6ConstructorInfo.cs
- HtmlControl.cs
- PersonalizableTypeEntry.cs
- DomainUpDown.cs
- TypeLoadException.cs
- WebPartHeaderCloseVerb.cs
- WebPartEditorCancelVerb.cs
- DesignerActionGlyph.cs
- ServicePointManagerElement.cs
- MetafileHeader.cs
- PrintController.cs
- Stack.cs
- mil_sdk_version.cs
- FixedLineResult.cs
- CssStyleCollection.cs
- LoggedException.cs
- ValidatorCompatibilityHelper.cs
- ToolConsole.cs
- ReliableSessionBindingElement.cs
- MatchingStyle.cs
- FirstMatchCodeGroup.cs
- GeneralTransform3D.cs
- RuntimeIdentifierPropertyAttribute.cs
- XsltException.cs
- Color.cs
- VisualStyleRenderer.cs
- DoubleStorage.cs
- GradientStop.cs
- WebSysDescriptionAttribute.cs
- SafeProcessHandle.cs
- PrePrepareMethodAttribute.cs
- NavigatorOutput.cs
- HtmlElement.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SessionChannels.cs
- XmlSchemaDocumentation.cs
- XmlCustomFormatter.cs
- WebPartHelpVerb.cs
- DockingAttribute.cs
- X509Chain.cs
- EntityConnectionStringBuilder.cs
- SqlConnectionManager.cs
- DropSourceBehavior.cs