Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / StyleTypedPropertyAttribute.cs / 1305600 / 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
- LogLogRecordEnumerator.cs
- XhtmlConformanceSection.cs
- Int16AnimationUsingKeyFrames.cs
- TreeWalkHelper.cs
- TreeViewBindingsEditorForm.cs
- ListBoxChrome.cs
- CodeBinaryOperatorExpression.cs
- SkewTransform.cs
- SqlDataSourceCache.cs
- PathStreamGeometryContext.cs
- HttpResponse.cs
- SecurityPolicySection.cs
- XdrBuilder.cs
- SizeIndependentAnimationStorage.cs
- MediaTimeline.cs
- CompilerInfo.cs
- LoaderAllocator.cs
- PolicyException.cs
- XmlImplementation.cs
- HtmlInputReset.cs
- ProcessProtocolHandler.cs
- Vector3DAnimation.cs
- ExpressionBuilder.cs
- odbcmetadatacollectionnames.cs
- MultiByteCodec.cs
- FilterQueryOptionExpression.cs
- UnmanagedMarshal.cs
- RequestStatusBarUpdateEventArgs.cs
- CompiledAction.cs
- WrappedIUnknown.cs
- CommandField.cs
- FlagsAttribute.cs
- Opcode.cs
- PersistenceException.cs
- TrustManager.cs
- Style.cs
- TimeEnumHelper.cs
- XmlEventCache.cs
- SecurityPolicySection.cs
- SessionEndingEventArgs.cs
- ScrollProperties.cs
- TypeConverterAttribute.cs
- TextEffectCollection.cs
- ADMembershipUser.cs
- RowVisual.cs
- ScalarOps.cs
- Math.cs
- CompositeScriptReferenceEventArgs.cs
- AutoGeneratedField.cs
- StylusShape.cs
- ValidatorCompatibilityHelper.cs
- FullTrustAssembly.cs
- ControlIdConverter.cs
- FactoryRecord.cs
- IIS7UserPrincipal.cs
- CustomValidator.cs
- BoundField.cs
- HtmlControl.cs
- NonVisualControlAttribute.cs
- BitmapEffectCollection.cs
- WebPartConnectionsEventArgs.cs
- TextEffectCollection.cs
- TemplateKey.cs
- Thumb.cs
- DropTarget.cs
- SafeRegistryHandle.cs
- TreeNode.cs
- Activator.cs
- GrammarBuilderPhrase.cs
- DeviceContext.cs
- SmtpFailedRecipientException.cs
- ProfessionalColors.cs
- ObjectStateFormatter.cs
- PageThemeCodeDomTreeGenerator.cs
- SolidColorBrush.cs
- EmptyQuery.cs
- BaseAsyncResult.cs
- TemplateKey.cs
- ListControlDesigner.cs
- CustomCredentialPolicy.cs
- StreamWithDictionary.cs
- XPathQilFactory.cs
- IntellisenseTextBox.designer.cs
- ListViewItemEventArgs.cs
- DataControlFieldHeaderCell.cs
- SendKeys.cs
- XmlAutoDetectWriter.cs
- mediapermission.cs
- SecurityDocument.cs
- PropertyChangeTracker.cs
- KerberosTicketHashIdentifierClause.cs
- WebPartConnectionsCancelVerb.cs
- ResourceDescriptionAttribute.cs
- ScaleTransform3D.cs
- ObjectConverter.cs
- TcpClientChannel.cs
- ProcessModelSection.cs
- ProfileGroupSettings.cs
- TransactionFlowBindingElementImporter.cs
- ConfigurationStrings.cs