Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / StyleTypedPropertyAttribute.cs / 1305600 / 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
- SpellerStatusTable.cs
- ConfigDefinitionUpdates.cs
- MaskedTextBox.cs
- ParameterSubsegment.cs
- DefaultAssemblyResolver.cs
- ItemChangedEventArgs.cs
- ContentElementCollection.cs
- GeneralTransform.cs
- WebBrowserUriTypeConverter.cs
- NetNamedPipeBindingElement.cs
- PassportAuthenticationModule.cs
- securitymgrsite.cs
- CommonBehaviorsSection.cs
- HttpProfileBase.cs
- OutputCacheProfileCollection.cs
- FileIOPermission.cs
- HttpServerVarsCollection.cs
- RolePrincipal.cs
- DataGridViewRowStateChangedEventArgs.cs
- RelationshipEndMember.cs
- ObjectPersistData.cs
- EntityFunctions.cs
- HeaderElement.cs
- TaskFormBase.cs
- HtmlUtf8RawTextWriter.cs
- _WebProxyDataBuilder.cs
- XamlGridLengthSerializer.cs
- ToolStripItemEventArgs.cs
- TimelineClockCollection.cs
- ASCIIEncoding.cs
- ForwardPositionQuery.cs
- WebPageTraceListener.cs
- TimeStampChecker.cs
- OrCondition.cs
- WSTrustFeb2005.cs
- EdmType.cs
- CodeMethodReturnStatement.cs
- CompareValidator.cs
- ScriptControlDescriptor.cs
- BeginSelectCardRequest.cs
- ListSortDescriptionCollection.cs
- _LazyAsyncResult.cs
- MultiBinding.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- Int32.cs
- ControlBindingsConverter.cs
- _IPv4Address.cs
- DispatcherHookEventArgs.cs
- DisplayInformation.cs
- Matrix.cs
- ProcessThread.cs
- RequestCacheEntry.cs
- MsmqNonTransactedPoisonHandler.cs
- DateTimeParse.cs
- RepeaterItemCollection.cs
- WindowsFormsHelpers.cs
- UrlPath.cs
- PolygonHotSpot.cs
- SiteMapHierarchicalDataSourceView.cs
- InputLangChangeEvent.cs
- RuntimeArgument.cs
- WebOperationContext.cs
- HyperLinkStyle.cs
- ReflectTypeDescriptionProvider.cs
- UrlAuthorizationModule.cs
- RangeValidator.cs
- Control.cs
- ThemeableAttribute.cs
- ApplicationTrust.cs
- ListMarkerSourceInfo.cs
- login.cs
- XmlSerializerVersionAttribute.cs
- NameValueSectionHandler.cs
- WebHttpBindingCollectionElement.cs
- ChildrenQuery.cs
- AuthenticationModuleElement.cs
- XPathNavigator.cs
- MailMessageEventArgs.cs
- EditorZone.cs
- EntityKey.cs
- RawAppCommandInputReport.cs
- BoundField.cs
- SystemThemeKey.cs
- LineBreak.cs
- HttpPostedFileWrapper.cs
- DesignSurface.cs
- HtmlElementErrorEventArgs.cs
- DataServiceConfiguration.cs
- TreeSet.cs
- ComponentChangingEvent.cs
- Aes.cs
- LoginUtil.cs
- StyleXamlParser.cs
- SizeF.cs
- FilteredAttributeCollection.cs
- MimeMultiPart.cs
- MailDefinition.cs
- DataGridViewColumnConverter.cs
- ChtmlTextWriter.cs