Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SoapUnknownHeader.cs
- FirstMatchCodeGroup.cs
- CodeExpressionStatement.cs
- XmlSchemaAppInfo.cs
- XhtmlBasicSelectionListAdapter.cs
- MeshGeometry3D.cs
- AvTraceDetails.cs
- WebPartAuthorizationEventArgs.cs
- CodeCatchClause.cs
- HttpWebRequest.cs
- PrimaryKeyTypeConverter.cs
- WebProxyScriptElement.cs
- EncryptedData.cs
- TemplatePropertyEntry.cs
- HandlerBase.cs
- GreenMethods.cs
- DataGridRelationshipRow.cs
- StretchValidation.cs
- ClientConfigurationHost.cs
- ListItemCollection.cs
- SafeArchiveContext.cs
- Mapping.cs
- ParenthesizePropertyNameAttribute.cs
- SafeThemeHandle.cs
- ProvideValueServiceProvider.cs
- HttpConfigurationContext.cs
- BuildProviderAppliesToAttribute.cs
- XhtmlBasicPhoneCallAdapter.cs
- XmlDictionaryReader.cs
- ObjectDisposedException.cs
- CodePageUtils.cs
- DesignerSerializationManager.cs
- COSERVERINFO.cs
- XmlDocumentType.cs
- FormatPage.cs
- StrokeNodeOperations.cs
- ImageCollectionCodeDomSerializer.cs
- ContainerSelectorActiveEvent.cs
- SqlDataSourceCustomCommandEditor.cs
- AdCreatedEventArgs.cs
- securestring.cs
- Helpers.cs
- XsdBuildProvider.cs
- EntryIndex.cs
- XmlComplianceUtil.cs
- PropertyGroupDescription.cs
- OciEnlistContext.cs
- WebPartTransformerCollection.cs
- AffineTransform3D.cs
- OdbcHandle.cs
- HttpRequest.cs
- MaterialCollection.cs
- SyntaxCheck.cs
- QueryHandler.cs
- DeviceSpecific.cs
- HTMLTagNameToTypeMapper.cs
- CurrencyWrapper.cs
- StatusBar.cs
- SchemaAttDef.cs
- AgileSafeNativeMemoryHandle.cs
- ValidatorCompatibilityHelper.cs
- QuaternionRotation3D.cs
- TraceHandlerErrorFormatter.cs
- Msmq3PoisonHandler.cs
- SmtpDigestAuthenticationModule.cs
- JpegBitmapEncoder.cs
- _StreamFramer.cs
- HashCodeCombiner.cs
- PopupRootAutomationPeer.cs
- CategoryValueConverter.cs
- RegexCompilationInfo.cs
- VisualState.cs
- Clipboard.cs
- DataPointer.cs
- ParameterReplacerVisitor.cs
- HyperlinkAutomationPeer.cs
- ClientRolePrincipal.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- OutputCacheProviderCollection.cs
- StringFormat.cs
- OptimalBreakSession.cs
- DetailsViewPagerRow.cs
- XamlTypeMapperSchemaContext.cs
- ErrorEventArgs.cs
- TextPointerBase.cs
- SqlFileStream.cs
- HelpHtmlBuilder.cs
- XmlUrlResolver.cs
- DispatchOperationRuntime.cs
- DataRelationCollection.cs
- Int64KeyFrameCollection.cs
- Light.cs
- WindowsFont.cs
- CodeGroup.cs
- ComplexTypeEmitter.cs
- WSMessageEncoding.cs
- DataPagerField.cs
- XmlUnspecifiedAttribute.cs
- PathFigureCollection.cs
- OperationAbortedException.cs