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
- ScriptResourceMapping.cs
- RelatedPropertyManager.cs
- CustomAttributeSerializer.cs
- ScrollItemPatternIdentifiers.cs
- ProcessHostFactoryHelper.cs
- PrivateFontCollection.cs
- DataControlLinkButton.cs
- DiscoveryClientRequestChannel.cs
- KeyEvent.cs
- FtpRequestCacheValidator.cs
- RectangleF.cs
- Transform3DGroup.cs
- Faults.cs
- CompilationSection.cs
- PostBackOptions.cs
- RuntimeVariableList.cs
- SamlConditions.cs
- CommandBinding.cs
- DiscoveryViaBehavior.cs
- RegexBoyerMoore.cs
- EntityConnectionStringBuilder.cs
- ProviderBase.cs
- HtmlShim.cs
- TabletDevice.cs
- MimeReturn.cs
- StylusShape.cs
- DataViewManager.cs
- KnownIds.cs
- WorkflowItemsPresenter.cs
- Internal.cs
- Command.cs
- ModelItemKeyValuePair.cs
- Compress.cs
- NamedPipeHostedTransportConfiguration.cs
- RoleServiceManager.cs
- FileLogRecordStream.cs
- HttpApplication.cs
- RawStylusInput.cs
- TraceContextRecord.cs
- JsonClassDataContract.cs
- RowToParametersTransformer.cs
- CodeDirectionExpression.cs
- ResolveMatchesCD1.cs
- hwndwrapper.cs
- httpapplicationstate.cs
- GrammarBuilder.cs
- GeometryDrawing.cs
- TimelineGroup.cs
- UniqueIdentifierService.cs
- PtsContext.cs
- cryptoapiTransform.cs
- InfoCardBaseException.cs
- Int32Animation.cs
- CmsUtils.cs
- BasePattern.cs
- ThreadLocal.cs
- EntityType.cs
- Border.cs
- GenericsInstances.cs
- mediapermission.cs
- FrameworkContentElementAutomationPeer.cs
- StructuredTypeInfo.cs
- TileBrush.cs
- ContentValidator.cs
- EntityDataSourceValidationException.cs
- FixedPageStructure.cs
- SqlComparer.cs
- IISUnsafeMethods.cs
- EntityConnectionStringBuilder.cs
- XsltArgumentList.cs
- EntityClientCacheKey.cs
- AutomationProperties.cs
- SHA384Managed.cs
- DiscoveryOperationContextExtension.cs
- Permission.cs
- XmlWriterSettings.cs
- XhtmlConformanceSection.cs
- CloudCollection.cs
- TypeLoader.cs
- Adorner.cs
- InputScope.cs
- DocobjHost.cs
- SurrogateDataContract.cs
- FrameAutomationPeer.cs
- NTAccount.cs
- MultidimensionalArrayItemReference.cs
- XmlSchemaGroupRef.cs
- ReadOnlyCollectionBase.cs
- UmAlQuraCalendar.cs
- KeyValueConfigurationCollection.cs
- AppDomainGrammarProxy.cs
- BuildProvidersCompiler.cs
- XmlNodeList.cs
- MenuItemBindingCollection.cs
- TextSerializer.cs
- DependencyPropertyChangedEventArgs.cs
- DeferredReference.cs
- odbcmetadatacolumnnames.cs
- RoutingUtilities.cs
- HostDesigntimeLicenseContext.cs