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
- Hash.cs
- FillErrorEventArgs.cs
- TimerElapsedEvenArgs.cs
- MLangCodePageEncoding.cs
- FormViewDesigner.cs
- WebPart.cs
- ReadOnlyAttribute.cs
- XmlCDATASection.cs
- CodeDomConfigurationHandler.cs
- ListViewGroupItemCollection.cs
- SimpleTypeResolver.cs
- RemoteWebConfigurationHost.cs
- ProtectedProviderSettings.cs
- InputLanguage.cs
- AsymmetricKeyExchangeDeformatter.cs
- SelectionPattern.cs
- DiffuseMaterial.cs
- SqlStream.cs
- PersonalizationProvider.cs
- XmlElement.cs
- FontDialog.cs
- UserInitiatedNavigationPermission.cs
- PeerApplication.cs
- StorageEndPropertyMapping.cs
- HtmlInputButton.cs
- ConfigDefinitionUpdates.cs
- TabControlToolboxItem.cs
- InternalException.cs
- GrowingArray.cs
- ProfileModule.cs
- TransformerTypeCollection.cs
- XmlSecureResolver.cs
- SoapWriter.cs
- ListBoxAutomationPeer.cs
- ContentOperations.cs
- ElementHost.cs
- GridViewSortEventArgs.cs
- Rotation3DAnimationBase.cs
- Interlocked.cs
- TraceSection.cs
- NumberFormatInfo.cs
- QilChoice.cs
- PeerTransportListenAddressValidatorAttribute.cs
- ExtensionSurface.cs
- Hyperlink.cs
- DateTimeSerializationSection.cs
- CodeTypeConstructor.cs
- Debugger.cs
- PreservationFileReader.cs
- WebUtil.cs
- SchemaType.cs
- SystemColors.cs
- TypeUnloadedException.cs
- DataGridViewRowCollection.cs
- OdbcRowUpdatingEvent.cs
- FreezableDefaultValueFactory.cs
- WsdlWriter.cs
- SessionPageStatePersister.cs
- CodePropertyReferenceExpression.cs
- EventPrivateKey.cs
- DbConnectionStringCommon.cs
- GenerateTemporaryTargetAssembly.cs
- ShaderEffect.cs
- ToolStripTemplateNode.cs
- TableLayoutRowStyleCollection.cs
- WindowsSlider.cs
- SchemaType.cs
- Parsers.cs
- AttributeProviderAttribute.cs
- bindurihelper.cs
- SafeRegistryKey.cs
- ColumnTypeConverter.cs
- Part.cs
- EditCommandColumn.cs
- ThicknessKeyFrameCollection.cs
- MatrixTransform3D.cs
- ParserExtension.cs
- MimeTextImporter.cs
- OLEDB_Enum.cs
- OleDbWrapper.cs
- XmlSchemaFacet.cs
- StyleModeStack.cs
- SqlGenericUtil.cs
- RowToFieldTransformer.cs
- CharStorage.cs
- Helper.cs
- CategoryNameCollection.cs
- AssociationTypeEmitter.cs
- ReflectPropertyDescriptor.cs
- Window.cs
- figurelength.cs
- SafeReversePInvokeHandle.cs
- ElementFactory.cs
- ImageButton.cs
- StringAnimationBase.cs
- ComponentCollection.cs
- TimeoutValidationAttribute.cs
- InputLangChangeEvent.cs
- SemanticAnalyzer.cs
- BitmapEffectDrawingContextWalker.cs