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
- ImmutableCollection.cs
- SafeProcessHandle.cs
- ComponentCommands.cs
- ActivityInstanceMap.cs
- ProxyAttribute.cs
- EventArgs.cs
- MappingMetadataHelper.cs
- EventLogger.cs
- WebBrowserNavigatedEventHandler.cs
- ReflectPropertyDescriptor.cs
- BevelBitmapEffect.cs
- CodeCatchClauseCollection.cs
- PlaceHolder.cs
- EncoderBestFitFallback.cs
- ModuleBuilder.cs
- ProfileInfo.cs
- InstanceNameConverter.cs
- FlowDocumentView.cs
- ProfileEventArgs.cs
- TripleDESCryptoServiceProvider.cs
- InternalSafeNativeMethods.cs
- URLBuilder.cs
- ValidatorCompatibilityHelper.cs
- SendSecurityHeaderElement.cs
- ObjectSet.cs
- Polyline.cs
- ThreadStateException.cs
- NetworkInformationException.cs
- SchemaDeclBase.cs
- FragmentNavigationEventArgs.cs
- TogglePatternIdentifiers.cs
- MessageEncodingBindingElement.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ReturnType.cs
- EncodingNLS.cs
- OptionalRstParameters.cs
- XmlCharType.cs
- AutomationAttributeInfo.cs
- ColumnMapTranslator.cs
- COM2ExtendedUITypeEditor.cs
- PropertyChangedEventArgs.cs
- SchemaTypeEmitter.cs
- ApplicationSecurityInfo.cs
- HttpHeaderCollection.cs
- LogLogRecordEnumerator.cs
- PrimitiveRenderer.cs
- ComplexType.cs
- CodeArgumentReferenceExpression.cs
- XamlInt32CollectionSerializer.cs
- MatcherBuilder.cs
- String.cs
- StaticDataManager.cs
- FileDialog_Vista.cs
- TypedMessageConverter.cs
- LedgerEntry.cs
- XmlCDATASection.cs
- VersionValidator.cs
- ParseElementCollection.cs
- TransformerTypeCollection.cs
- IListConverters.cs
- InternalEnumValidator.cs
- AutomationPropertyInfo.cs
- SoapInteropTypes.cs
- ConvertersCollection.cs
- LogicalMethodInfo.cs
- StreamWithDictionary.cs
- DataContract.cs
- TreeNodeCollection.cs
- Block.cs
- AndCondition.cs
- XmlSignificantWhitespace.cs
- ObjectDataSourceStatusEventArgs.cs
- TakeOrSkipWhileQueryOperator.cs
- CfgParser.cs
- SessionStateUtil.cs
- EventHandlerList.cs
- ElementHostAutomationPeer.cs
- _DisconnectOverlappedAsyncResult.cs
- CompilerCollection.cs
- RequestCache.cs
- MdImport.cs
- DesignTimeHTMLTextWriter.cs
- FormatVersion.cs
- WebPartConnectionsCloseVerb.cs
- TextDecorationUnitValidation.cs
- CharacterBufferReference.cs
- LabelDesigner.cs
- DetailsView.cs
- RoleGroupCollection.cs
- Preprocessor.cs
- XamlToRtfWriter.cs
- safelinkcollection.cs
- XmlNodeChangedEventArgs.cs
- Aggregates.cs
- FixUp.cs
- XmlDesigner.cs
- Monitor.cs
- PartialArray.cs
- RuleSettingsCollection.cs
- SessionSwitchEventArgs.cs