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
- EventHandlersDesigner.cs
- EntityDataSourceWizardForm.cs
- HostExecutionContextManager.cs
- DispatcherOperation.cs
- KeyProperty.cs
- ScriptingRoleServiceSection.cs
- AnnotationAuthorChangedEventArgs.cs
- SqlCommandBuilder.cs
- TargetParameterCountException.cs
- TextRangeProviderWrapper.cs
- MultipleFilterMatchesException.cs
- Shared.cs
- KeyedCollection.cs
- DataIdProcessor.cs
- ProjectionPruner.cs
- NameValuePair.cs
- _BufferOffsetSize.cs
- ManualResetEvent.cs
- XmlWriter.cs
- DataSourceConverter.cs
- WebConfigurationFileMap.cs
- DefaultProfileManager.cs
- CacheSection.cs
- PropertyGridView.cs
- NullableDoubleAverageAggregationOperator.cs
- HierarchicalDataBoundControl.cs
- DbSetClause.cs
- XmlNamespaceManager.cs
- RuntimeCompatibilityAttribute.cs
- ControlParameter.cs
- ListSortDescriptionCollection.cs
- CompilerError.cs
- WeakReferenceKey.cs
- RegionInfo.cs
- TimersDescriptionAttribute.cs
- TagMapInfo.cs
- bidPrivateBase.cs
- DataService.cs
- MetadataPropertyvalue.cs
- DataGridClipboardCellContent.cs
- XmlDataCollection.cs
- SchemaObjectWriter.cs
- ByeOperation11AsyncResult.cs
- InstallerTypeAttribute.cs
- RSACryptoServiceProvider.cs
- DataGridAddNewRow.cs
- WorkflowServiceHostFactory.cs
- DeviceContext.cs
- EntryIndex.cs
- Debugger.cs
- ServerIdentity.cs
- CodePropertyReferenceExpression.cs
- _MultipleConnectAsync.cs
- Int64AnimationUsingKeyFrames.cs
- ResourcePool.cs
- TemplateControl.cs
- SqlCachedBuffer.cs
- InsufficientMemoryException.cs
- Byte.cs
- SubtreeProcessor.cs
- Util.cs
- ExpressionsCollectionEditor.cs
- MetadataArtifactLoaderCompositeFile.cs
- GroupLabel.cs
- TextLine.cs
- DataObjectAttribute.cs
- COSERVERINFO.cs
- TextBox.cs
- BypassElementCollection.cs
- CommandHelpers.cs
- WebHttpBindingElement.cs
- DataKeyArray.cs
- ListViewInsertionMark.cs
- ColorTranslator.cs
- PropertyTabChangedEvent.cs
- MulticastNotSupportedException.cs
- SharedPersonalizationStateInfo.cs
- WpfKnownMember.cs
- ipaddressinformationcollection.cs
- InnerItemCollectionView.cs
- MailSettingsSection.cs
- ElementAtQueryOperator.cs
- MissingManifestResourceException.cs
- VirtualPath.cs
- DataGridViewTopRowAccessibleObject.cs
- xmlglyphRunInfo.cs
- FileChangeNotifier.cs
- AttributeCollection.cs
- EntityDesignerBuildProvider.cs
- DynamicMethod.cs
- ListView.cs
- RequestCacheValidator.cs
- CodeEventReferenceExpression.cs
- WebPartConnectionsCancelVerb.cs
- RtfToXamlReader.cs
- CodeChecksumPragma.cs
- ClickablePoint.cs
- DataGridViewColumnEventArgs.cs
- DEREncoding.cs
- PartialCachingControl.cs