Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- RequiredFieldValidator.cs
- SmiXetterAccessMap.cs
- StrokeNode.cs
- TimeSpanSecondsConverter.cs
- XmlHierarchyData.cs
- DES.cs
- WindowsTokenRoleProvider.cs
- SchemaInfo.cs
- SmtpNegotiateAuthenticationModule.cs
- MetaModel.cs
- ReferenceTypeElement.cs
- Pair.cs
- SmiMetaDataProperty.cs
- SQLInt32.cs
- KeyboardEventArgs.cs
- AppDomainAttributes.cs
- FixedPageAutomationPeer.cs
- ClientTarget.cs
- ExpressionEditorSheet.cs
- WebExceptionStatus.cs
- Accessible.cs
- RawStylusInputCustomDataList.cs
- IgnoreSection.cs
- DebugInfoExpression.cs
- BitmapData.cs
- MaterializeFromAtom.cs
- AddInStore.cs
- WsatAdminException.cs
- WsatAdminException.cs
- MarginCollapsingState.cs
- SchemaManager.cs
- PagerSettings.cs
- RoleManagerModule.cs
- ActivityExecutorDelegateInfo.cs
- AuthenticationServiceManager.cs
- WebPartConnectionsConfigureVerb.cs
- log.cs
- AssemblyName.cs
- ThreadExceptionDialog.cs
- DataMember.cs
- SqlDuplicator.cs
- ErrorHandlerFaultInfo.cs
- StrongNameKeyPair.cs
- ForEachAction.cs
- SpStreamWrapper.cs
- BitmapFrame.cs
- UnsafeNativeMethods.cs
- TimeSpanValidator.cs
- Collection.cs
- BitmapVisualManager.cs
- Membership.cs
- X500Name.cs
- SystemIPv6InterfaceProperties.cs
- X509Certificate2Collection.cs
- HwndSource.cs
- FragmentQuery.cs
- TextRangeEditLists.cs
- FormsAuthenticationModule.cs
- ExpressionLexer.cs
- PackWebRequest.cs
- HttpModulesSection.cs
- RsaSecurityTokenAuthenticator.cs
- TransformPatternIdentifiers.cs
- Stroke.cs
- DeclarativeExpressionConditionDeclaration.cs
- MenuAdapter.cs
- CanonicalFormWriter.cs
- mediaeventshelper.cs
- DmlSqlGenerator.cs
- baseshape.cs
- OdbcUtils.cs
- XmlILTrace.cs
- ListViewDataItem.cs
- ColumnTypeConverter.cs
- PointHitTestResult.cs
- BitmapSourceSafeMILHandle.cs
- BooleanAnimationUsingKeyFrames.cs
- DataGridViewCellConverter.cs
- AppSettingsReader.cs
- ReadWriteObjectLock.cs
- ApplicationServicesHostFactory.cs
- WindowsTokenRoleProvider.cs
- PersonalizablePropertyEntry.cs
- OptimisticConcurrencyException.cs
- ProxyWebPart.cs
- VisualTarget.cs
- SecurityMode.cs
- SafeMILHandle.cs
- ParameterToken.cs
- ExceptionHandlersDesigner.cs
- PrimitiveSchema.cs
- PropertyValueChangedEvent.cs
- ToolBarButtonClickEvent.cs
- SemaphoreFullException.cs
- XAMLParseException.cs
- _AutoWebProxyScriptHelper.cs
- TaskHelper.cs
- DataTableNewRowEvent.cs
- DefaultMemberAttribute.cs
- CompositeActivityValidator.cs