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
- Guid.cs
- XsdDateTime.cs
- ScriptRef.cs
- SqlDataSourceStatusEventArgs.cs
- EntityDataSourceMemberPath.cs
- ModelFunction.cs
- Paragraph.cs
- ObjectDataSourceMethodEditor.cs
- DispatchWrapper.cs
- RemotingSurrogateSelector.cs
- FormViewRow.cs
- GridViewEditEventArgs.cs
- uribuilder.cs
- CollectionExtensions.cs
- SafePEFileHandle.cs
- MetadataArtifactLoaderResource.cs
- ObjectStateManagerMetadata.cs
- DocumentApplicationJournalEntry.cs
- WebZone.cs
- SecurityPolicySection.cs
- MenuItem.cs
- Types.cs
- PointLightBase.cs
- ToggleProviderWrapper.cs
- ObjectListFieldsPage.cs
- OdbcReferenceCollection.cs
- PopupEventArgs.cs
- CoreSwitches.cs
- TreeViewHitTestInfo.cs
- ConfigXmlComment.cs
- DateTimeSerializationSection.cs
- TableParagraph.cs
- Single.cs
- ElementNotEnabledException.cs
- EncoderParameters.cs
- EmbeddedMailObjectCollectionEditor.cs
- FrameSecurityDescriptor.cs
- ThrowHelper.cs
- ListBindingHelper.cs
- TransformGroup.cs
- Deserializer.cs
- EntitySqlException.cs
- ConnectionPointCookie.cs
- CompilerLocalReference.cs
- TypeSystem.cs
- NamespaceCollection.cs
- RecognizerInfo.cs
- listviewsubitemcollectioneditor.cs
- TextServicesDisplayAttribute.cs
- ExecutionEngineException.cs
- ListViewGroup.cs
- XamlBrushSerializer.cs
- DeviceContexts.cs
- ChangePassword.cs
- WebServicesSection.cs
- MsmqAppDomainProtocolHandler.cs
- DebugViewWriter.cs
- Content.cs
- SqlBuilder.cs
- CodeDomConfigurationHandler.cs
- TextSearch.cs
- GenericQueueSurrogate.cs
- FamilyMap.cs
- MachineKeyConverter.cs
- WebBaseEventKeyComparer.cs
- ProtectedConfiguration.cs
- JulianCalendar.cs
- httpserverutility.cs
- FunctionImportMapping.cs
- RegexCharClass.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Transform3D.cs
- NonSerializedAttribute.cs
- CopyAttributesAction.cs
- TableLayoutPanel.cs
- ExecutionProperties.cs
- StateBag.cs
- RequestNavigateEventArgs.cs
- SqlCommandSet.cs
- _RequestLifetimeSetter.cs
- SHA256CryptoServiceProvider.cs
- ApplicationBuildProvider.cs
- SqlClientFactory.cs
- DocobjHost.cs
- PeerContact.cs
- StreamGeometry.cs
- OdbcConnectionOpen.cs
- MULTI_QI.cs
- UrlMappingsSection.cs
- M3DUtil.cs
- SiteMapDataSourceView.cs
- ActivationServices.cs
- EntityClassGenerator.cs
- FilterQuery.cs
- TransformPattern.cs
- ProfileParameter.cs
- SiteMapNodeItemEventArgs.cs
- DataErrorValidationRule.cs
- DataBoundControl.cs
- WindowsComboBox.cs