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
- SocketElement.cs
- DefaultSection.cs
- GeneralTransform3D.cs
- DesignerAutoFormatCollection.cs
- GridItemPattern.cs
- NameValueFileSectionHandler.cs
- TypeSource.cs
- EntityTypeEmitter.cs
- TemplateBindingExpressionConverter.cs
- PermissionRequestEvidence.cs
- ParagraphVisual.cs
- WrapperEqualityComparer.cs
- ZipIOExtraFieldPaddingElement.cs
- Socket.cs
- BufferedGraphicsContext.cs
- ConfigurationElement.cs
- EraserBehavior.cs
- WorkflowRequestContext.cs
- BulletChrome.cs
- LoadWorkflowByInstanceKeyCommand.cs
- SystemUdpStatistics.cs
- DataPagerFieldCommandEventArgs.cs
- InstanceDataCollection.cs
- ThreadPool.cs
- HostingEnvironmentException.cs
- MessageLogTraceRecord.cs
- Listbox.cs
- ILGenerator.cs
- DetailsViewModeEventArgs.cs
- CurrentTimeZone.cs
- Directory.cs
- FileDialog.cs
- XmlTextAttribute.cs
- NullableDoubleSumAggregationOperator.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- OracleConnection.cs
- COM2EnumConverter.cs
- DesignerVerb.cs
- BitmapCodecInfo.cs
- XmlQueryType.cs
- DecimalConverter.cs
- Model3D.cs
- RestHandler.cs
- Table.cs
- DBConnection.cs
- EncryptedType.cs
- XPathEmptyIterator.cs
- PlatformNotSupportedException.cs
- CollectionChangeEventArgs.cs
- ResXBuildProvider.cs
- ChannelBase.cs
- BulletDecorator.cs
- COM2ExtendedTypeConverter.cs
- Span.cs
- FirstQueryOperator.cs
- TypeBuilderInstantiation.cs
- HostingEnvironmentException.cs
- AmbientProperties.cs
- FileLogRecordStream.cs
- TextSimpleMarkerProperties.cs
- XmlnsDictionary.cs
- DomainUpDown.cs
- DBConnection.cs
- XPathChildIterator.cs
- TextRange.cs
- RtfFormatStack.cs
- CodeTryCatchFinallyStatement.cs
- Maps.cs
- DetailsViewPagerRow.cs
- PageThemeBuildProvider.cs
- XmlComplianceUtil.cs
- DesignerAutoFormatCollection.cs
- ReflectionTypeLoadException.cs
- TimerElapsedEvenArgs.cs
- ToolStripLocationCancelEventArgs.cs
- GenericIdentity.cs
- Atom10ItemFormatter.cs
- UpDownEvent.cs
- Visual3DCollection.cs
- TextTreeRootTextBlock.cs
- InfoCardAsymmetricCrypto.cs
- XPathExpr.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- UnknownWrapper.cs
- FrameworkContentElement.cs
- StylusDownEventArgs.cs
- ImageIndexEditor.cs
- WsdlInspector.cs
- RoutedEvent.cs
- FactoryRecord.cs
- TransformationRules.cs
- ArraySubsetEnumerator.cs
- UdpSocket.cs
- DirectionalLight.cs
- IOException.cs
- BrushValueSerializer.cs
- MultiPageTextView.cs
- ResourceExpression.cs
- CodeDOMProvider.cs
- GC.cs