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
- MemberHolder.cs
- BindingMAnagerBase.cs
- Span.cs
- DrawItemEvent.cs
- FileAuthorizationModule.cs
- IconBitmapDecoder.cs
- BadImageFormatException.cs
- AstTree.cs
- _Semaphore.cs
- Resources.Designer.cs
- ListDictionaryInternal.cs
- SocketPermission.cs
- SecurityTokenProviderContainer.cs
- DataGridCellsPresenter.cs
- WorkflowPersistenceContext.cs
- XslCompiledTransform.cs
- SplitterCancelEvent.cs
- XPathNodeInfoAtom.cs
- SerTrace.cs
- AuthenticateEventArgs.cs
- RequestCacheManager.cs
- FlowDecision.cs
- DPTypeDescriptorContext.cs
- StyleSheetRefUrlEditor.cs
- MasterPage.cs
- CFGGrammar.cs
- DataRelation.cs
- FixedSOMPageConstructor.cs
- AssemblyAttributes.cs
- FloaterParagraph.cs
- UIntPtr.cs
- TileBrush.cs
- RenderData.cs
- _TLSstream.cs
- _ContextAwareResult.cs
- wmiprovider.cs
- TransformValueSerializer.cs
- ProviderConnectionPointCollection.cs
- Operators.cs
- HostedBindingBehavior.cs
- SiteMapNodeItem.cs
- ActiveXContainer.cs
- ManagedIStream.cs
- ResourcePermissionBase.cs
- UnaryExpression.cs
- StopStoryboard.cs
- SafeEventLogReadHandle.cs
- EdmRelationshipRoleAttribute.cs
- SourceInterpreter.cs
- DataShape.cs
- CodeEntryPointMethod.cs
- StrokeFIndices.cs
- TypedTableBaseExtensions.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ListControlStringCollectionEditor.cs
- XmlSchemaGroupRef.cs
- TcpStreams.cs
- AttributeSetAction.cs
- BinaryReader.cs
- ProgressPage.cs
- ExpandableObjectConverter.cs
- OutputCacheProfileCollection.cs
- TreeNode.cs
- DesignerAdRotatorAdapter.cs
- XamlBuildTaskServices.cs
- TextureBrush.cs
- FacetValueContainer.cs
- sitestring.cs
- GraphicsContext.cs
- FontStretchConverter.cs
- LoginDesigner.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SystemEvents.cs
- WebPartEventArgs.cs
- SqlFacetAttribute.cs
- TriggerCollection.cs
- CmsUtils.cs
- BitmapEffectCollection.cs
- TimeoutHelper.cs
- DataGridViewBindingCompleteEventArgs.cs
- BoundingRectTracker.cs
- VisualStyleRenderer.cs
- ChildChangedEventArgs.cs
- SafeBitVector32.cs
- SmtpNegotiateAuthenticationModule.cs
- SkinIDTypeConverter.cs
- DataSourceCache.cs
- PerfService.cs
- BitmapFrameEncode.cs
- GACMembershipCondition.cs
- TemplateApplicationHelper.cs
- Speller.cs
- StylusEventArgs.cs
- DataGridViewCellCollection.cs
- Form.cs
- _WinHttpWebProxyDataBuilder.cs
- AppDomainProtocolHandler.cs
- RegexStringValidatorAttribute.cs
- ClassData.cs
- DateTimeParse.cs