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
- Utils.cs
- UserControl.cs
- _Win32.cs
- XPathDocument.cs
- GenericWebPart.cs
- ColumnWidthChangingEvent.cs
- SubtreeProcessor.cs
- DesignerAutoFormatStyle.cs
- ECDiffieHellman.cs
- WebEventCodes.cs
- TabItemWrapperAutomationPeer.cs
- EmbeddedMailObject.cs
- CheckBoxAutomationPeer.cs
- Helper.cs
- DesignerActionListCollection.cs
- ManagementBaseObject.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- DataListItem.cs
- BaseUriHelper.cs
- _ConnectStream.cs
- GeneralTransform2DTo3DTo2D.cs
- HttpModuleActionCollection.cs
- FormParameter.cs
- SQLRoleProvider.cs
- NotifyInputEventArgs.cs
- StoryFragments.cs
- ColorMatrix.cs
- XmlSchemaSet.cs
- ColumnResult.cs
- GZipDecoder.cs
- SetStoryboardSpeedRatio.cs
- RSAOAEPKeyExchangeFormatter.cs
- ContentFileHelper.cs
- TypefaceCollection.cs
- FloatUtil.cs
- TraceUtility.cs
- __Error.cs
- ClaimTypeRequirement.cs
- input.cs
- CodeSnippetExpression.cs
- SqlFormatter.cs
- SerializableAttribute.cs
- XmlSignificantWhitespace.cs
- Roles.cs
- TextBoxAutoCompleteSourceConverter.cs
- QueryConverter.cs
- MbpInfo.cs
- EditCommandColumn.cs
- AlternateViewCollection.cs
- XamlSerializerUtil.cs
- PlatformCulture.cs
- DoubleUtil.cs
- AppSettingsReader.cs
- ObjectConverter.cs
- InvariantComparer.cs
- WebResponse.cs
- DbModificationCommandTree.cs
- ListViewDeletedEventArgs.cs
- PathSegmentCollection.cs
- TextBoxLine.cs
- BindingObserver.cs
- HostedBindingBehavior.cs
- SoapExtension.cs
- Slider.cs
- Canvas.cs
- SelectionEditor.cs
- EntityDesignPluralizationHandler.cs
- SemaphoreSecurity.cs
- PagesSection.cs
- TextParaLineResult.cs
- RepeaterCommandEventArgs.cs
- DataReceivedEventArgs.cs
- xmlsaver.cs
- UniqueSet.cs
- DatagridviewDisplayedBandsData.cs
- DropTarget.cs
- SiteMapDataSourceDesigner.cs
- WorkBatch.cs
- KeyGesture.cs
- RtfControlWordInfo.cs
- CodeArrayIndexerExpression.cs
- Model3D.cs
- Int32Rect.cs
- SqlTypeConverter.cs
- FlatButtonAppearance.cs
- X509Extension.cs
- FigureHelper.cs
- XmlSchemaSubstitutionGroup.cs
- FragmentQueryKB.cs
- SourceElementsCollection.cs
- XmlBindingWorker.cs
- BitmapPalettes.cs
- MarginCollapsingState.cs
- AuthenticatingEventArgs.cs
- OrderedDictionaryStateHelper.cs
- LeaseManager.cs
- SQLInt64.cs
- CriticalFinalizerObject.cs
- NotificationContext.cs
- TemplateManager.cs