Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PerfCounters.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SqlBulkCopyColumnMapping.cs
- XAMLParseException.cs
- OleDbConnectionFactory.cs
- HttpWebResponse.cs
- TimelineCollection.cs
- latinshape.cs
- RawStylusInputReport.cs
- ContentFileHelper.cs
- BitSet.cs
- TrustManager.cs
- WorkflowMarkupSerializationException.cs
- SoapIgnoreAttribute.cs
- ByteRangeDownloader.cs
- PerfService.cs
- Quaternion.cs
- XmlDomTextWriter.cs
- FormsAuthenticationEventArgs.cs
- SplitContainer.cs
- DesignerTransaction.cs
- ProfileService.cs
- ActiveDesignSurfaceEvent.cs
- List.cs
- EnumerableRowCollection.cs
- sqlmetadatafactory.cs
- GrammarBuilderDictation.cs
- MexBindingElement.cs
- FixedMaxHeap.cs
- WebPartManagerDesigner.cs
- PropertyInformationCollection.cs
- DynamicMethod.cs
- ModulesEntry.cs
- OneWayBindingElementImporter.cs
- WebPartDescriptionCollection.cs
- TypeConverterAttribute.cs
- DomainConstraint.cs
- ToolStripEditorManager.cs
- DeferredReference.cs
- FixedSOMContainer.cs
- TraceXPathNavigator.cs
- DocumentScope.cs
- HttpHeaderCollection.cs
- AuthenticateEventArgs.cs
- ClientScriptItem.cs
- WebPartEditorOkVerb.cs
- HttpRuntimeSection.cs
- ImportException.cs
- Triangle.cs
- FixedSOMSemanticBox.cs
- HelpEvent.cs
- keycontainerpermission.cs
- Or.cs
- HttpHeaderCollection.cs
- BindingMAnagerBase.cs
- PictureBox.cs
- CustomAttributeSerializer.cs
- WebHttpElement.cs
- InternalUserCancelledException.cs
- CdpEqualityComparer.cs
- ThreadNeutralSemaphore.cs
- ObjectContextServiceProvider.cs
- RegisteredArrayDeclaration.cs
- ExternalFile.cs
- IPEndPointCollection.cs
- _emptywebproxy.cs
- httpserverutility.cs
- DesignTimeXamlWriter.cs
- ControlFilterExpression.cs
- CodeThrowExceptionStatement.cs
- PolyLineSegment.cs
- ConstructorBuilder.cs
- System.Data_BID.cs
- RenderDataDrawingContext.cs
- FrugalList.cs
- LineInfo.cs
- SecurityStateEncoder.cs
- RectangleF.cs
- ContentType.cs
- Int16Animation.cs
- AlternateView.cs
- DetailsViewDeletedEventArgs.cs
- JsonCollectionDataContract.cs
- BezierSegment.cs
- SpecularMaterial.cs
- ChannelPoolSettings.cs
- XmlEntity.cs
- ProtocolImporter.cs
- SqlCommand.cs
- AdPostCacheSubstitution.cs
- VolatileResourceManager.cs
- PeerNameRecord.cs
- EdgeProfileValidation.cs
- DBCommand.cs
- TableDetailsCollection.cs
- Comparer.cs
- SpStreamWrapper.cs
- CompositeActivityDesigner.cs
- SerializerProvider.cs
- DetailsViewInsertedEventArgs.cs