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
- WizardPanel.cs
- CustomAssemblyResolver.cs
- TextChangedEventArgs.cs
- IResourceProvider.cs
- SerializerDescriptor.cs
- SortKey.cs
- Selector.cs
- activationcontext.cs
- Codec.cs
- SimpleApplicationHost.cs
- DBCSCodePageEncoding.cs
- MarkerProperties.cs
- PreviewControlDesigner.cs
- OracleParameterBinding.cs
- FlowDocumentView.cs
- PrePostDescendentsWalker.cs
- TimeSpanConverter.cs
- WebSysDefaultValueAttribute.cs
- PageThemeCodeDomTreeGenerator.cs
- TextParaClient.cs
- SystemPens.cs
- AttributeAction.cs
- ScrollChrome.cs
- CipherData.cs
- ArrayListCollectionBase.cs
- TypeSemantics.cs
- OleTxTransaction.cs
- DocumentOrderQuery.cs
- AsymmetricSignatureDeformatter.cs
- ProfileEventArgs.cs
- TemplateXamlParser.cs
- EntityClassGenerator.cs
- TextTrailingWordEllipsis.cs
- ComboBoxAutomationPeer.cs
- ArrayList.cs
- StartUpEventArgs.cs
- PageEventArgs.cs
- TextEditorTables.cs
- TextRangeSerialization.cs
- QuadraticBezierSegment.cs
- CodeIterationStatement.cs
- CompareInfo.cs
- OptimizedTemplateContent.cs
- XmlHierarchicalDataSourceView.cs
- SizeChangedInfo.cs
- SortKey.cs
- TrackBar.cs
- DiscreteKeyFrames.cs
- Util.cs
- TraceData.cs
- GenericWebPart.cs
- XsdDuration.cs
- TextBoxAutomationPeer.cs
- QilTargetType.cs
- DllHostedComPlusServiceHost.cs
- DesignerDataConnection.cs
- ConfigXmlComment.cs
- SchemaNotation.cs
- TextWriterTraceListener.cs
- serverconfig.cs
- DropTarget.cs
- Matrix3DConverter.cs
- SplayTreeNode.cs
- MinMaxParagraphWidth.cs
- OleDbStruct.cs
- TableAdapterManagerMethodGenerator.cs
- WebPartEventArgs.cs
- EditorZone.cs
- MouseActionValueSerializer.cs
- DataMemberListEditor.cs
- EntityClassGenerator.cs
- EntityClassGenerator.cs
- ECDsa.cs
- securitycriticaldataformultiplegetandset.cs
- Vector3DCollectionConverter.cs
- XmlSchemaAttributeGroupRef.cs
- XPathMultyIterator.cs
- SplashScreenNativeMethods.cs
- safex509handles.cs
- PointAnimationUsingKeyFrames.cs
- ProcessProtocolHandler.cs
- SafeFileMappingHandle.cs
- QueryRewriter.cs
- ObjectItemCachedAssemblyLoader.cs
- SecUtil.cs
- HybridDictionary.cs
- XmlNodeChangedEventManager.cs
- StreamGeometry.cs
- CommandBindingCollection.cs
- CreateUserErrorEventArgs.cs
- Tablet.cs
- DesignTimeData.cs
- DataSourceListEditor.cs
- SendMailErrorEventArgs.cs
- StyleCollection.cs
- PrivilegedConfigurationManager.cs
- SelectionChangedEventArgs.cs
- TracingConnection.cs
- Directory.cs
- PrintingPermission.cs