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
- TimeStampChecker.cs
- Light.cs
- ValueTypeFixupInfo.cs
- RawStylusInputCustomData.cs
- figurelengthconverter.cs
- SafeNativeMethodsMilCoreApi.cs
- DSASignatureDeformatter.cs
- ValueExpressions.cs
- SafeSecurityHandles.cs
- StringValidator.cs
- VerificationAttribute.cs
- ContentControl.cs
- TraceSwitch.cs
- DiscoveryServerProtocol.cs
- PageTheme.cs
- CompiledRegexRunner.cs
- ConfigurationManagerHelperFactory.cs
- RelationshipConverter.cs
- XPathAncestorIterator.cs
- InstanceLockLostException.cs
- CuspData.cs
- PrintingPermission.cs
- ValidatedControlConverter.cs
- EntityKey.cs
- DbDataAdapter.cs
- SoapSchemaMember.cs
- CodeDomSerializationProvider.cs
- XmlLanguageConverter.cs
- IncomingWebResponseContext.cs
- SerialReceived.cs
- XpsSerializationManager.cs
- CharacterBufferReference.cs
- TabControlToolboxItem.cs
- ProfessionalColorTable.cs
- ClientTargetSection.cs
- versioninfo.cs
- ScriptHandlerFactory.cs
- WebPartMenuStyle.cs
- QuaternionConverter.cs
- ValidateNames.cs
- DrawingContext.cs
- DynamicRenderer.cs
- TextBoxBase.cs
- Italic.cs
- DateTimeConstantAttribute.cs
- DateRangeEvent.cs
- PixelFormats.cs
- x509store.cs
- LicenseProviderAttribute.cs
- Itemizer.cs
- QuaternionKeyFrameCollection.cs
- SHA1Managed.cs
- Options.cs
- ExtendedProperty.cs
- SortableBindingList.cs
- ContextMarshalException.cs
- XmlSchemaAttributeGroup.cs
- ItemTypeToolStripMenuItem.cs
- UITypeEditor.cs
- SmtpDateTime.cs
- CodeVariableReferenceExpression.cs
- RegisteredExpandoAttribute.cs
- BookmarkEventArgs.cs
- SoapAttributeOverrides.cs
- EventItfInfo.cs
- Types.cs
- ProviderException.cs
- VisualStyleInformation.cs
- DocumentViewer.cs
- ColorAnimationBase.cs
- SqlError.cs
- Point.cs
- XdrBuilder.cs
- ImageMap.cs
- TextBoxLine.cs
- WmpBitmapEncoder.cs
- FontSource.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SQLGuidStorage.cs
- AutomationPropertyInfo.cs
- NullableLongMinMaxAggregationOperator.cs
- ErrorEventArgs.cs
- DataRowChangeEvent.cs
- KeyGestureConverter.cs
- CodeTryCatchFinallyStatement.cs
- PropertyCondition.cs
- SafeFileMapViewHandle.cs
- ConnectionsZone.cs
- CheckPair.cs
- SessionEndedEventArgs.cs
- AttachmentCollection.cs
- _OSSOCK.cs
- StorageEntityTypeMapping.cs
- BamlLocalizationDictionary.cs
- CommandArguments.cs
- XmlCodeExporter.cs
- EditingCoordinator.cs
- ErrorStyle.cs
- XmlSchemaAppInfo.cs
- IndexedString.cs