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
- DrawingAttributesDefaultValueFactory.cs
- TargetFrameworkAttribute.cs
- ButtonStandardAdapter.cs
- PropertyItem.cs
- DataServiceStreamProviderWrapper.cs
- Matrix3D.cs
- XmlMembersMapping.cs
- UpdateExpressionVisitor.cs
- Cursor.cs
- ActiveDesignSurfaceEvent.cs
- ServiceOperation.cs
- AppSettingsReader.cs
- ResourceManagerWrapper.cs
- MenuCommand.cs
- XmlNamespaceDeclarationsAttribute.cs
- GenericEnumerator.cs
- GPStream.cs
- Type.cs
- DefaultTraceListener.cs
- ADMembershipUser.cs
- TableLayoutColumnStyleCollection.cs
- QueryReaderSettings.cs
- BitmapEffectrendercontext.cs
- FixedPosition.cs
- ArraySubsetEnumerator.cs
- UserControlDesigner.cs
- HistoryEventArgs.cs
- SecurityPermission.cs
- MembershipSection.cs
- JsonWriterDelegator.cs
- _LocalDataStoreMgr.cs
- ExpressionBuilderContext.cs
- ExclusiveTcpListener.cs
- List.cs
- ScalarType.cs
- DbParameterCollectionHelper.cs
- ImportContext.cs
- Debug.cs
- BrowserCapabilitiesCompiler.cs
- StsCommunicationException.cs
- ResXFileRef.cs
- QueueProcessor.cs
- MetadataCache.cs
- XmlLanguageConverter.cs
- FontWeights.cs
- BamlLocalizableResource.cs
- DashStyle.cs
- DurableTimerExtension.cs
- ListBoxItem.cs
- NonBatchDirectoryCompiler.cs
- ElementHostPropertyMap.cs
- UnsafeNativeMethodsPenimc.cs
- DataControlButton.cs
- HtmlHistory.cs
- UserControlCodeDomTreeGenerator.cs
- DataExchangeServiceBinder.cs
- HotSpotCollection.cs
- SafeRegistryKey.cs
- Model3D.cs
- DateTimeFormatInfo.cs
- TransportContext.cs
- CodeVariableDeclarationStatement.cs
- PropertyGridView.cs
- KeyInfo.cs
- iisPickupDirectory.cs
- CodeSnippetTypeMember.cs
- MimeMapping.cs
- DodSequenceMerge.cs
- EditorZoneBase.cs
- StrokeCollectionConverter.cs
- Timer.cs
- DataKey.cs
- ArrayConverter.cs
- StreamGeometryContext.cs
- InvalidCastException.cs
- ConnectionManagementElementCollection.cs
- ReachObjectContext.cs
- X509SecurityTokenProvider.cs
- PasswordRecovery.cs
- CodeMemberProperty.cs
- ZoneIdentityPermission.cs
- ToolStripGrip.cs
- CodeValidator.cs
- WebHttpSecurityModeHelper.cs
- HttpWebResponse.cs
- CheckBoxRenderer.cs
- AppliedDeviceFiltersEditor.cs
- ColumnHeader.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ComponentRenameEvent.cs
- SrgsRuleRef.cs
- SqlParameterCollection.cs
- DispatcherHooks.cs
- WebPartTracker.cs
- HttpCachePolicyBase.cs
- SystemInfo.cs
- BitStream.cs
- URLMembershipCondition.cs
- Viewport3DAutomationPeer.cs
- Timer.cs