Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DataGridViewCellValueEventArgs.cs
- MenuEventArgs.cs
- OletxDependentTransaction.cs
- ToolStripGripRenderEventArgs.cs
- Scalars.cs
- UseLicense.cs
- SingletonChannelAcceptor.cs
- SQLMoney.cs
- DataGridViewColumnConverter.cs
- DetailsViewPagerRow.cs
- UIntPtr.cs
- UriWriter.cs
- ValidationErrorCollection.cs
- WindowsMenu.cs
- EntityClassGenerator.cs
- TrustManagerPromptUI.cs
- RawStylusInputReport.cs
- SqlDataSourceConfigureFilterForm.cs
- PackagingUtilities.cs
- TraceHandler.cs
- Atom10FormatterFactory.cs
- ClientSponsor.cs
- DataSourceConverter.cs
- oledbmetadatacollectionnames.cs
- RadioButtonAutomationPeer.cs
- DataGridViewCellParsingEventArgs.cs
- ResourceWriter.cs
- MethodBuilderInstantiation.cs
- TextWriter.cs
- ZipPackagePart.cs
- PageCatalogPart.cs
- AssemblyAttributesGoHere.cs
- XmlILModule.cs
- Frame.cs
- FtpRequestCacheValidator.cs
- TableItemProviderWrapper.cs
- X509SubjectKeyIdentifierClause.cs
- PathFigureCollection.cs
- PermissionAttributes.cs
- JournalNavigationScope.cs
- shaperfactoryquerycachekey.cs
- Visual3D.cs
- TemplatePartAttribute.cs
- ClosableStream.cs
- _OverlappedAsyncResult.cs
- RowsCopiedEventArgs.cs
- WindowInteropHelper.cs
- DoubleLinkListEnumerator.cs
- XmlSerializationGeneratedCode.cs
- PassportIdentity.cs
- TransformGroup.cs
- WorkflowMarkupElementEventArgs.cs
- HttpRequestTraceRecord.cs
- TextTreePropertyUndoUnit.cs
- ResolvedKeyFrameEntry.cs
- UnmanagedHandle.cs
- FixedSOMLineCollection.cs
- RegexRunner.cs
- AddInDeploymentState.cs
- FormViewRow.cs
- PreloadedPackages.cs
- DbBuffer.cs
- AttributeData.cs
- PrimaryKeyTypeConverter.cs
- oledbmetadatacolumnnames.cs
- GridView.cs
- SqlCharStream.cs
- X509Utils.cs
- PropertyInfoSet.cs
- FullTextLine.cs
- HtmlShimManager.cs
- FormViewUpdatedEventArgs.cs
- ObjectCloneHelper.cs
- XComponentModel.cs
- FloaterParagraph.cs
- ToolStripSeparatorRenderEventArgs.cs
- IQueryable.cs
- RectangleGeometry.cs
- LineProperties.cs
- DeclarativeConditionsCollection.cs
- TypeElement.cs
- SponsorHelper.cs
- AutomationElement.cs
- DataList.cs
- ConstraintStruct.cs
- PaperSize.cs
- SimpleHandlerBuildProvider.cs
- TransformedBitmap.cs
- PeerUnsafeNativeCryptMethods.cs
- FormParameter.cs
- Padding.cs
- MetafileEditor.cs
- DashStyles.cs
- PrintingPermissionAttribute.cs
- ContextMarshalException.cs
- Expander.cs
- PageRequestManager.cs
- ResXResourceWriter.cs
- MailMessageEventArgs.cs
- DateBoldEvent.cs