Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int16AnimationBase.cs
- StylusPointPropertyUnit.cs
- QilName.cs
- DocumentEventArgs.cs
- XmlUrlResolver.cs
- HandledEventArgs.cs
- CollectionBase.cs
- XmlDataImplementation.cs
- transactioncontext.cs
- SpeechUI.cs
- EncodingConverter.cs
- TypeDescriptor.cs
- ImageMap.cs
- TextProperties.cs
- BindingListCollectionView.cs
- ApplicationHost.cs
- CompilerScope.cs
- RequestChannelBinder.cs
- Pair.cs
- WrappingXamlSchemaContext.cs
- NumberSubstitution.cs
- LinearGradientBrush.cs
- ButtonField.cs
- MobileListItem.cs
- WorkflowElementDialog.cs
- XmlNodeList.cs
- ObjectDataSourceFilteringEventArgs.cs
- SmtpClient.cs
- ScrollItemProviderWrapper.cs
- PropertyInformation.cs
- ClientApiGenerator.cs
- UIElement.cs
- TemplateBuilder.cs
- NavigationPropertySingletonExpression.cs
- SmtpMail.cs
- DelegatingChannelListener.cs
- EventProviderWriter.cs
- RoleGroupCollection.cs
- ScrollBar.cs
- NonSerializedAttribute.cs
- diagnosticsswitches.cs
- FormCollection.cs
- HiddenFieldPageStatePersister.cs
- XamlNamespaceHelper.cs
- NativeMethods.cs
- WebResponse.cs
- CurrentChangedEventManager.cs
- Int16KeyFrameCollection.cs
- CssClassPropertyAttribute.cs
- JulianCalendar.cs
- ClonableStack.cs
- LineProperties.cs
- SqlTrackingService.cs
- BufferModesCollection.cs
- Item.cs
- ApplicationHost.cs
- GorillaCodec.cs
- SynchronizingStream.cs
- Vector3dCollection.cs
- BamlLocalizableResourceKey.cs
- OutKeywords.cs
- DispatcherEventArgs.cs
- ToolStripContentPanel.cs
- PropagatorResult.cs
- NativeMethods.cs
- IndexingContentUnit.cs
- XPathNodeInfoAtom.cs
- columnmapkeybuilder.cs
- DbParameterCollectionHelper.cs
- WmpBitmapEncoder.cs
- AssemblyNameEqualityComparer.cs
- GcSettings.cs
- MultiAsyncResult.cs
- OleDbError.cs
- MultitargetingHelpers.cs
- Positioning.cs
- DependencyObjectType.cs
- DataBindingsDialog.cs
- GridLength.cs
- FormsAuthenticationCredentials.cs
- ValidateNames.cs
- WebAdminConfigurationHelper.cs
- NumericUpDown.cs
- ZipFileInfo.cs
- DataObjectMethodAttribute.cs
- Sentence.cs
- MessageQueueCriteria.cs
- CustomCredentialPolicy.cs
- TreeNodeBindingDepthConverter.cs
- AddressHeaderCollection.cs
- MaterialGroup.cs
- FormsIdentity.cs
- TreeBuilder.cs
- DynamicMethod.cs
- unsafenativemethodsother.cs
- DataServiceClientException.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- SystemGatewayIPAddressInformation.cs
- DocumentSequence.cs
- MyContact.cs