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
- DataGridTableStyleMappingNameEditor.cs
- TimeSpanMinutesConverter.cs
- DirectoryObjectSecurity.cs
- FullTextBreakpoint.cs
- X509Certificate.cs
- GridViewCommandEventArgs.cs
- Validator.cs
- DbConnectionInternal.cs
- FormParameter.cs
- X509SecurityTokenAuthenticator.cs
- UrlMappingsSection.cs
- DurableInstanceProvider.cs
- EditCommandColumn.cs
- filewebrequest.cs
- JobStaple.cs
- TrustSection.cs
- ParameterCollection.cs
- RegexGroupCollection.cs
- OracleConnectionFactory.cs
- DSACryptoServiceProvider.cs
- SymmetricAlgorithm.cs
- Native.cs
- GZipStream.cs
- Typeface.cs
- RadioButton.cs
- RTTypeWrapper.cs
- UnsafeNativeMethods.cs
- ClientBuildManagerCallback.cs
- RecoverInstanceLocksCommand.cs
- SecurityState.cs
- DetailsViewUpdatedEventArgs.cs
- XmlSerializerSection.cs
- XmlSchemaNotation.cs
- DashStyles.cs
- ResourceProviderFactory.cs
- Walker.cs
- NetworkInformationPermission.cs
- SolidBrush.cs
- FormViewModeEventArgs.cs
- LabelLiteral.cs
- LogEntry.cs
- TextPenaltyModule.cs
- SystemUnicastIPAddressInformation.cs
- Operator.cs
- documentsequencetextview.cs
- Facet.cs
- IfAction.cs
- SiteMap.cs
- CultureInfoConverter.cs
- OleDbParameterCollection.cs
- ComponentCollection.cs
- CurrentChangedEventManager.cs
- LambdaCompiler.Unary.cs
- WinEventHandler.cs
- ResourceCategoryAttribute.cs
- TemplateControlBuildProvider.cs
- EditBehavior.cs
- Debugger.cs
- Compilation.cs
- NextPreviousPagerField.cs
- ValidationHelper.cs
- ArraySubsetEnumerator.cs
- DefaultMemberAttribute.cs
- NavigationService.cs
- HandleCollector.cs
- XmlCharCheckingWriter.cs
- NullableConverter.cs
- UIPermission.cs
- RouteItem.cs
- RemoteWebConfigurationHostStream.cs
- DataStreams.cs
- XmlWrappingWriter.cs
- FunctionOverloadResolver.cs
- AnalyzedTree.cs
- AxisAngleRotation3D.cs
- SequenceDesigner.cs
- ConnectionStringSettings.cs
- GacUtil.cs
- SemanticResolver.cs
- CustomCategoryAttribute.cs
- ThreadPool.cs
- DesignerSerializationOptionsAttribute.cs
- ImageListImageEditor.cs
- DataGridViewTextBoxEditingControl.cs
- SectionVisual.cs
- ControlType.cs
- WebPartUserCapability.cs
- ProtocolsConfiguration.cs
- OutOfProcStateClientManager.cs
- LicenseManager.cs
- StrongNameIdentityPermission.cs
- GeneratedCodeAttribute.cs
- StatusCommandUI.cs
- HttpCapabilitiesSectionHandler.cs
- CallSiteOps.cs
- ManifestSignatureInformation.cs
- ValidationSummary.cs
- ReachDocumentPageSerializerAsync.cs
- CapabilitiesRule.cs
- SolidBrush.cs