Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / StyleTypedPropertyAttribute.cs / 1 / StyleTypedPropertyAttribute.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
namespace System.Windows
{
///
/// This attribute is applied to the class and determine the target type which should be used for the properties of type Style.
/// The definition inherits to the subclasses or the derived class can redefine the target type for the property already defined in the base class.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class StyleTypedPropertyAttribute : Attribute
{
///
/// Default constructor
///
public StyleTypedPropertyAttribute()
{
}
///
/// The property name of type Style
///
public string Property
{
get { return _property; }
set { _property = value; }
}
///
/// Target type of the Style that should be used for the Property
///
public Type StyleTargetType
{
get { return _styleTargetType; }
set { _styleTargetType = value; }
}
private string _property;
private Type _styleTargetType;
}
}
// 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
{
///
/// This attribute is applied to the class and determine the target type which should be used for the properties of type Style.
/// The definition inherits to the subclasses or the derived class can redefine the target type for the property already defined in the base class.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class StyleTypedPropertyAttribute : Attribute
{
///
/// Default constructor
///
public StyleTypedPropertyAttribute()
{
}
///
/// The property name of type Style
///
public string Property
{
get { return _property; }
set { _property = value; }
}
///
/// Target type of the Style that should be used for the Property
///
public Type StyleTargetType
{
get { return _styleTargetType; }
set { _styleTargetType = value; }
}
private string _property;
private Type _styleTargetType;
}
}
// 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
- Vector3DCollectionConverter.cs
- ColorPalette.cs
- HashAlgorithm.cs
- Point3DCollection.cs
- WebExceptionStatus.cs
- XmlValueConverter.cs
- AssociationSetMetadata.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ContentValidator.cs
- RSAProtectedConfigurationProvider.cs
- CodeMethodMap.cs
- FormCollection.cs
- PropertyEmitter.cs
- Rect.cs
- MetadataHelper.cs
- PickBranchDesigner.xaml.cs
- WebServiceAttribute.cs
- IsolatedStorageSecurityState.cs
- ComAwareEventInfo.cs
- _emptywebproxy.cs
- PaperSize.cs
- QuaternionIndependentAnimationStorage.cs
- Facet.cs
- OutputCacheSection.cs
- FocusManager.cs
- GridViewRowPresenter.cs
- UndirectedGraph.cs
- CancellationState.cs
- XmlSchemaSubstitutionGroup.cs
- ResXDataNode.cs
- SyndicationItemFormatter.cs
- LocatorPartList.cs
- XomlDesignerLoader.cs
- DataGridViewComboBoxColumn.cs
- MatchAllMessageFilter.cs
- InvalidEnumArgumentException.cs
- BitSet.cs
- WebPartConnectVerb.cs
- SafeEventLogWriteHandle.cs
- DelegatedStream.cs
- DataBinding.cs
- HandlerFactoryWrapper.cs
- ConnectionPoolManager.cs
- NativeMethods.cs
- VerificationException.cs
- RequiredFieldValidator.cs
- SkewTransform.cs
- ErrorFormatterPage.cs
- ActivityTypeResolver.xaml.cs
- LinqTreeNodeEvaluator.cs
- GACMembershipCondition.cs
- DataRow.cs
- WpfKnownMemberInvoker.cs
- Rect.cs
- TreeNodeCollection.cs
- UIEndRequest.cs
- IdentityNotMappedException.cs
- ProviderCollection.cs
- AsymmetricSecurityBindingElement.cs
- HttpWebRequest.cs
- ResourceExpression.cs
- FixedSchema.cs
- QuadraticBezierSegment.cs
- DefaultAsyncDataDispatcher.cs
- Configuration.cs
- ObjectListItemCollection.cs
- ConsoleTraceListener.cs
- _UriSyntax.cs
- XmlChoiceIdentifierAttribute.cs
- NavigationWindow.cs
- DBConnectionString.cs
- PeerToPeerException.cs
- ConnectionOrientedTransportElement.cs
- BindingExpression.cs
- CipherData.cs
- Span.cs
- TypeDependencyAttribute.cs
- XmlSchemaProviderAttribute.cs
- NumberFunctions.cs
- Marshal.cs
- OleDbConnection.cs
- JavaScriptSerializer.cs
- HttpProfileBase.cs
- RevocationPoint.cs
- NavigationProperty.cs
- SqlDataSource.cs
- LinearGradientBrush.cs
- TextDecoration.cs
- PaintEvent.cs
- StreamUpgradeBindingElement.cs
- EntityConnectionStringBuilderItem.cs
- VideoDrawing.cs
- ProcessHostServerConfig.cs
- Binding.cs
- HttpUnhandledOperationInvoker.cs
- XmlResolver.cs
- GridViewCellAutomationPeer.cs
- RotateTransform3D.cs
- CodeDOMUtility.cs
- RoleManagerEventArgs.cs