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
- BufferBuilder.cs
- ListControlBoundActionList.cs
- CompiledAction.cs
- ObjectAssociationEndMapping.cs
- GlyphRun.cs
- StatusStrip.cs
- HttpListenerPrefixCollection.cs
- ContextInformation.cs
- ProtocolsConfigurationHandler.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- Base64Encoder.cs
- PrivateFontCollection.cs
- NewItemsContextMenuStrip.cs
- SystemUnicastIPAddressInformation.cs
- NavigatorInput.cs
- UrlMapping.cs
- _HelperAsyncResults.cs
- ModelItemDictionaryImpl.cs
- DnsEndpointIdentity.cs
- PropertiesTab.cs
- Base64Encoder.cs
- DbQueryCommandTree.cs
- ListBindableAttribute.cs
- UInt32Storage.cs
- StartFileNameEditor.cs
- DynamicResourceExtensionConverter.cs
- CodeStatementCollection.cs
- DataColumnCollection.cs
- HtmlFormWrapper.cs
- fixedPageContentExtractor.cs
- XmlDesignerDataSourceView.cs
- ClientBuildManagerCallback.cs
- QueryOutputWriter.cs
- ObjectAssociationEndMapping.cs
- TextCompositionEventArgs.cs
- BoundColumn.cs
- ProviderConnectionPointCollection.cs
- XmlAutoDetectWriter.cs
- XamlStackWriter.cs
- ProxyWebPartConnectionCollection.cs
- VirtualizingStackPanel.cs
- XmlSchemaElement.cs
- Module.cs
- Types.cs
- RuntimeEnvironment.cs
- PublisherMembershipCondition.cs
- DataError.cs
- ColorConverter.cs
- KeyPullup.cs
- basemetadatamappingvisitor.cs
- SerializerDescriptor.cs
- TargetInvocationException.cs
- JavaScriptSerializer.cs
- WebPartMovingEventArgs.cs
- DataServiceException.cs
- WebRequestModulesSection.cs
- RepeatInfo.cs
- _SSPIWrapper.cs
- GlyphInfoList.cs
- XmlIlTypeHelper.cs
- BitmapSizeOptions.cs
- xdrvalidator.cs
- DocumentXPathNavigator.cs
- RadioButton.cs
- SingleKeyFrameCollection.cs
- SystemInfo.cs
- LocalizationParserHooks.cs
- ListControl.cs
- DeflateInput.cs
- WizardPanel.cs
- DBDataPermission.cs
- ObjectParameter.cs
- UnauthorizedWebPart.cs
- HtmlTextArea.cs
- BamlLocalizableResource.cs
- TypeConverterAttribute.cs
- SessionIDManager.cs
- PropertiesTab.cs
- SourceExpressionException.cs
- DurationConverter.cs
- DesignerVerbToolStripMenuItem.cs
- IdentitySection.cs
- Region.cs
- QueryOperatorEnumerator.cs
- PointAnimationUsingKeyFrames.cs
- BinHexEncoder.cs
- MenuCommand.cs
- XmlWellformedWriter.cs
- DataGridCommandEventArgs.cs
- DateTime.cs
- ProfileSettings.cs
- BaseCAMarshaler.cs
- NotImplementedException.cs
- InvalidProgramException.cs
- _CommandStream.cs
- PanelDesigner.cs
- SmtpDateTime.cs
- Triangle.cs
- AuthenticationSection.cs
- WindowsFormsSynchronizationContext.cs