Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ConnectionPointCookie.cs
- CommonObjectSecurity.cs
- TextServicesHost.cs
- SystemWebCachingSectionGroup.cs
- DataGridViewButtonColumn.cs
- SecurityPolicySection.cs
- FormatStringEditor.cs
- SchemaSetCompiler.cs
- CollectionEditorDialog.cs
- TemplateKey.cs
- CreateUserErrorEventArgs.cs
- NavigationHelper.cs
- KnownColorTable.cs
- ObjectTypeMapping.cs
- Brush.cs
- MarginCollapsingState.cs
- ValidatorCollection.cs
- PolicyException.cs
- TimeSpan.cs
- ColumnResult.cs
- WeakEventTable.cs
- PopupControlService.cs
- CompoundFileStreamReference.cs
- LifetimeServices.cs
- DataObjectMethodAttribute.cs
- SqlBinder.cs
- CodeBinaryOperatorExpression.cs
- DataControlLinkButton.cs
- GridItemPatternIdentifiers.cs
- InvalidStoreProtectionKeyException.cs
- xmlglyphRunInfo.cs
- StylusLogic.cs
- ListItemsCollectionEditor.cs
- Hashtable.cs
- WebPartVerbCollection.cs
- FileUpload.cs
- GrammarBuilderBase.cs
- CroppedBitmap.cs
- BeginSelectCardRequest.cs
- Debug.cs
- Quaternion.cs
- StyleConverter.cs
- BaseProcessor.cs
- StatusBarPanel.cs
- X509CertificateRecipientClientCredential.cs
- OLEDB_Enum.cs
- ContainerUtilities.cs
- ReadOnlyDataSourceView.cs
- WindowShowOrOpenTracker.cs
- HttpServerChannel.cs
- ObjectTag.cs
- BinaryKeyIdentifierClause.cs
- OrderingInfo.cs
- DataGridPagerStyle.cs
- DoubleKeyFrameCollection.cs
- SiteMapProvider.cs
- DiagnosticsConfigurationHandler.cs
- CustomCredentialPolicy.cs
- Stack.cs
- SelectionWordBreaker.cs
- MbpInfo.cs
- FormViewModeEventArgs.cs
- MiniModule.cs
- SqlTriggerAttribute.cs
- XmlAttributeAttribute.cs
- TrailingSpaceComparer.cs
- ConfigurationCollectionAttribute.cs
- XamlSerializer.cs
- ObjectParameterCollection.cs
- TypeDescriptionProviderAttribute.cs
- PageTheme.cs
- ValidatingReaderNodeData.cs
- StringToken.cs
- ProtocolsConfigurationHandler.cs
- FacetEnabledSchemaElement.cs
- WebPartVerbsEventArgs.cs
- DeviceSpecificChoice.cs
- MembershipValidatePasswordEventArgs.cs
- SkinBuilder.cs
- AssemblyAssociatedContentFileAttribute.cs
- OrCondition.cs
- ConvertersCollection.cs
- SafeUserTokenHandle.cs
- TextEditorParagraphs.cs
- XmlWellformedWriter.cs
- BrowserCapabilitiesCompiler.cs
- StyleBamlRecordReader.cs
- EntityAdapter.cs
- ControlBuilder.cs
- TextInfo.cs
- CollectionType.cs
- BaseDataList.cs
- PropertyEntry.cs
- Int32EqualityComparer.cs
- EpmCustomContentSerializer.cs
- TransformerInfo.cs
- X509CertificateChain.cs
- WrapperSecurityCommunicationObject.cs
- DesignerActionVerbItem.cs
- DynamicPropertyHolder.cs