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
- X509ChainElement.cs
- InvalidOperationException.cs
- Package.cs
- AuthenticationService.cs
- EventLogPermissionEntryCollection.cs
- autovalidator.cs
- TextBox.cs
- NullReferenceException.cs
- ObjectQuery.cs
- TypeDescriptionProviderAttribute.cs
- PerformanceCountersElement.cs
- WindowsScrollBarBits.cs
- TextTreeUndo.cs
- OutputCacheProfileCollection.cs
- MaskedTextBox.cs
- XhtmlBasicLiteralTextAdapter.cs
- ProcessHostServerConfig.cs
- Pair.cs
- XmlSchemaComplexContent.cs
- NTAccount.cs
- LambdaCompiler.cs
- WebPartManager.cs
- SchemaMapping.cs
- XmlSignatureManifest.cs
- SimpleWorkerRequest.cs
- LongValidator.cs
- RequestBringIntoViewEventArgs.cs
- BulletDecorator.cs
- SecondaryViewProvider.cs
- DynamicField.cs
- DataGridColumnCollection.cs
- WindowsHyperlink.cs
- DataDocumentXPathNavigator.cs
- XmlSchemaSimpleTypeList.cs
- DbMetaDataFactory.cs
- ParallelTimeline.cs
- DesignerTextBoxAdapter.cs
- DesignerDataConnection.cs
- DataDocumentXPathNavigator.cs
- RelationshipWrapper.cs
- TileBrush.cs
- ObjectConverter.cs
- RegexGroup.cs
- SingleTagSectionHandler.cs
- TextTreeText.cs
- VirtualPathProvider.cs
- MimeParameters.cs
- OutputCacheModule.cs
- DependencyObjectType.cs
- ImageFormatConverter.cs
- CapabilitiesRule.cs
- NavigationExpr.cs
- LiteralControl.cs
- DesignerVerbCollection.cs
- EncryptedPackageFilter.cs
- DisplayMemberTemplateSelector.cs
- DataFieldConverter.cs
- ProfessionalColorTable.cs
- HtmlInputCheckBox.cs
- NativeCompoundFileAPIs.cs
- KoreanLunisolarCalendar.cs
- MasterPageParser.cs
- AspNetHostingPermission.cs
- SessionStateContainer.cs
- TabRenderer.cs
- ParallelTimeline.cs
- UserControlDesigner.cs
- SecurityDescriptor.cs
- CachedBitmap.cs
- XmlSerializerFactory.cs
- Msec.cs
- DbgCompiler.cs
- DataGridViewCellStyleConverter.cs
- GenericTypeParameterConverter.cs
- CorrelationManager.cs
- XPathDescendantIterator.cs
- WebPartHelpVerb.cs
- ProtocolsConfigurationHandler.cs
- AuthenticationSection.cs
- HttpListenerPrefixCollection.cs
- XMLDiffLoader.cs
- Parser.cs
- DecimalStorage.cs
- DeviceContext.cs
- StringFreezingAttribute.cs
- WebPartCancelEventArgs.cs
- PropertyNames.cs
- SHA384.cs
- HandledEventArgs.cs
- StringKeyFrameCollection.cs
- StoryFragments.cs
- ZipIOFileItemStream.cs
- DesignerActionItemCollection.cs
- DesignerSerializerAttribute.cs
- IItemProperties.cs
- TextRunTypographyProperties.cs
- AutoGeneratedField.cs
- AsymmetricSignatureDeformatter.cs
- ReachDocumentPageSerializerAsync.cs
- TextSpan.cs