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
- SqlFacetAttribute.cs
- NaturalLanguageHyphenator.cs
- EmissiveMaterial.cs
- RefExpr.cs
- StackBuilderSink.cs
- CatalogZone.cs
- ChangeBlockUndoRecord.cs
- ValueUnavailableException.cs
- EntityTypeBase.cs
- PersonalizableAttribute.cs
- SqlBulkCopy.cs
- RoleGroup.cs
- MsdtcWrapper.cs
- CharKeyFrameCollection.cs
- KeyboardEventArgs.cs
- templategroup.cs
- Parameter.cs
- FlowLayoutPanelDesigner.cs
- ImageListImage.cs
- tibetanshape.cs
- EntitySetBaseCollection.cs
- SafeRightsManagementQueryHandle.cs
- StreamingContext.cs
- NumberFormatter.cs
- CreateUserErrorEventArgs.cs
- XmlExpressionDumper.cs
- XmlChildNodes.cs
- baseaxisquery.cs
- NavigationWindowAutomationPeer.cs
- TextTreeInsertUndoUnit.cs
- ECDsa.cs
- CryptographicAttribute.cs
- ObjectDataSourceDisposingEventArgs.cs
- X509Certificate2Collection.cs
- CopyNodeSetAction.cs
- NullReferenceException.cs
- WebPartCloseVerb.cs
- UnsafeNativeMethods.cs
- SystemFonts.cs
- DES.cs
- CodeChecksumPragma.cs
- DynamicResourceExtension.cs
- NetworkInterface.cs
- Button.cs
- PersonalizablePropertyEntry.cs
- X509Certificate2.cs
- Scheduling.cs
- BinaryWriter.cs
- RenderDataDrawingContext.cs
- EmbeddedMailObjectCollectionEditor.cs
- NodeFunctions.cs
- WebPartsSection.cs
- PackageStore.cs
- EntityClassGenerator.cs
- SizeF.cs
- SoapIgnoreAttribute.cs
- DataGridViewAccessibleObject.cs
- AutomationProperties.cs
- DesignerAttribute.cs
- DeploymentSection.cs
- XmlNamespaceMapping.cs
- TagNameToTypeMapper.cs
- EntityDataSourceContextCreatedEventArgs.cs
- HttpValueCollection.cs
- Buffer.cs
- PartBasedPackageProperties.cs
- KeyGestureValueSerializer.cs
- LineMetrics.cs
- ThaiBuddhistCalendar.cs
- EventLogPermissionAttribute.cs
- ListenerElementsCollection.cs
- HtmlForm.cs
- ContainerVisual.cs
- PeerResolverSettings.cs
- BitStream.cs
- UnsettableComboBox.cs
- basevalidator.cs
- SerTrace.cs
- DynamicFilter.cs
- AnimationClock.cs
- WebBrowserDesigner.cs
- ConsumerConnectionPoint.cs
- SimpleColumnProvider.cs
- CodeCatchClause.cs
- CodeEventReferenceExpression.cs
- ElementUtil.cs
- EventBindingService.cs
- AllMembershipCondition.cs
- FullTextBreakpoint.cs
- Mouse.cs
- XmlSchemaGroupRef.cs
- MachineKeyConverter.cs
- FigureParaClient.cs
- BookmarkCallbackWrapper.cs
- WebHttpEndpoint.cs
- CombinedHttpChannel.cs
- ClonableStack.cs
- HttpCachePolicyElement.cs
- EncodingTable.cs
- FontInfo.cs