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
- RSAPKCS1KeyExchangeFormatter.cs
- GeometryModel3D.cs
- ObjectCache.cs
- Int32RectConverter.cs
- LinqDataSourceHelper.cs
- SystemWebSectionGroup.cs
- DefaultTextStoreTextComposition.cs
- Guid.cs
- AddInToken.cs
- basecomparevalidator.cs
- RIPEMD160.cs
- GroupQuery.cs
- SchemaNotation.cs
- TrustManagerMoreInformation.cs
- TextTrailingWordEllipsis.cs
- AssociatedControlConverter.cs
- HttpVersion.cs
- ObfuscateAssemblyAttribute.cs
- Switch.cs
- CmsInterop.cs
- LinqDataSourceValidationException.cs
- DesignerListAdapter.cs
- ViewPort3D.cs
- ContentType.cs
- OdbcErrorCollection.cs
- MetafileHeaderWmf.cs
- OutOfProcStateClientManager.cs
- DbgCompiler.cs
- MetadataSource.cs
- NonClientArea.cs
- TimeZone.cs
- StyleSelector.cs
- BrowserDefinitionCollection.cs
- ParagraphResult.cs
- xamlnodes.cs
- MouseDevice.cs
- FixedTextSelectionProcessor.cs
- SerializationIncompleteException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- GPRECT.cs
- DownloadProgressEventArgs.cs
- ToolStripPanelRenderEventArgs.cs
- SystemIcmpV4Statistics.cs
- HttpAsyncResult.cs
- basecomparevalidator.cs
- ListControl.cs
- SqlUserDefinedTypeAttribute.cs
- Expression.cs
- ReadOnlyDataSource.cs
- TypeSystem.cs
- BookmarkTable.cs
- HtmlEncodedRawTextWriter.cs
- OdbcParameter.cs
- IpcChannelHelper.cs
- DeviceContext2.cs
- HtmlInputCheckBox.cs
- FileInfo.cs
- SpinWait.cs
- LocationReferenceValue.cs
- HwndHost.cs
- _KerberosClient.cs
- HostUtils.cs
- Control.cs
- ObjectNotFoundException.cs
- EasingQuaternionKeyFrame.cs
- SpeechSynthesizer.cs
- UserControl.cs
- FlowNode.cs
- StringKeyFrameCollection.cs
- Int16Converter.cs
- MissingManifestResourceException.cs
- DbException.cs
- PrePostDescendentsWalker.cs
- AssociationTypeEmitter.cs
- GregorianCalendarHelper.cs
- BamlBinaryReader.cs
- GridPattern.cs
- SafeFileMappingHandle.cs
- OdbcConnectionStringbuilder.cs
- DataControlFieldCell.cs
- RemoteWebConfigurationHost.cs
- CommandDevice.cs
- IISMapPath.cs
- Content.cs
- Cursors.cs
- ProxyGenerator.cs
- System.Data.OracleClient_BID.cs
- SynchronizedDispatch.cs
- ReferenceConverter.cs
- StoreAnnotationsMap.cs
- DirectionalLight.cs
- Guid.cs
- HtmlElementCollection.cs
- QueryOptionExpression.cs
- Misc.cs
- PagesChangedEventArgs.cs
- WebPartUtil.cs
- BamlTreeNode.cs
- FilterableAttribute.cs
- PartitionedStream.cs