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
- UdpRetransmissionSettings.cs
- ListChangedEventArgs.cs
- TempEnvironment.cs
- ServiceOperation.cs
- SingleAnimationBase.cs
- PersonalizationDictionary.cs
- PrePostDescendentsWalker.cs
- InvalidOperationException.cs
- DataServiceQueryProvider.cs
- SqlEnums.cs
- LingerOption.cs
- ReadWriteSpinLock.cs
- Material.cs
- IIS7WorkerRequest.cs
- ReadOnlyHierarchicalDataSource.cs
- ToolStripArrowRenderEventArgs.cs
- XPathSingletonIterator.cs
- CompilerTypeWithParams.cs
- CustomValidator.cs
- CLRBindingWorker.cs
- CodeNamespaceImportCollection.cs
- DocumentPageViewAutomationPeer.cs
- CompilerWrapper.cs
- InternalSafeNativeMethods.cs
- Stream.cs
- SelectionListDesigner.cs
- LockCookie.cs
- ProfileGroupSettings.cs
- FontUnit.cs
- ToolStripControlHost.cs
- Calendar.cs
- ClientConfigurationHost.cs
- RecipientInfo.cs
- ProviderBase.cs
- EntityContainerEmitter.cs
- WindowsFormsHelpers.cs
- UIElementPropertyUndoUnit.cs
- EntityDataSourceChangingEventArgs.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Simplifier.cs
- Transform3DGroup.cs
- BitmapFrameEncode.cs
- SizeFConverter.cs
- WebBrowsableAttribute.cs
- TransportOutputChannel.cs
- FileEnumerator.cs
- Typography.cs
- OletxCommittableTransaction.cs
- AnimatedTypeHelpers.cs
- GridSplitterAutomationPeer.cs
- DataControlFieldCell.cs
- Section.cs
- MultiSelectRootGridEntry.cs
- SafePEFileHandle.cs
- DrawingCollection.cs
- TextBoxBase.cs
- DataComponentNameHandler.cs
- DataObject.cs
- SectionUpdates.cs
- AdornerDecorator.cs
- RequestCacheValidator.cs
- GridSplitterAutomationPeer.cs
- RegexTypeEditor.cs
- PathFigureCollection.cs
- Overlapped.cs
- ChannelListenerBase.cs
- EnumConverter.cs
- MemoryPressure.cs
- DeviceContext.cs
- ControlCachePolicy.cs
- SingleSelectRootGridEntry.cs
- BlobPersonalizationState.cs
- Message.cs
- RegionData.cs
- MethodExpr.cs
- ZipPackagePart.cs
- DataMemberListEditor.cs
- WebPartHeaderCloseVerb.cs
- RelationshipConstraintValidator.cs
- NonSerializedAttribute.cs
- MembershipPasswordException.cs
- HtmlInputFile.cs
- TextPenaltyModule.cs
- DataRelation.cs
- D3DImage.cs
- FontCacheUtil.cs
- SoapIncludeAttribute.cs
- RestHandlerFactory.cs
- WebServiceResponseDesigner.cs
- Run.cs
- DataPagerField.cs
- AbsoluteQuery.cs
- PoisonMessageException.cs
- FontSizeConverter.cs
- TextElementAutomationPeer.cs
- ProxyAttribute.cs
- DataGridView.cs
- SecurityUniqueId.cs
- ComponentChangingEvent.cs
- CardSpacePolicyElement.cs