Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SequentialOutput.cs
- MergePropertyDescriptor.cs
- ToolStripDropDown.cs
- PropertyEmitter.cs
- TextSelectionHighlightLayer.cs
- MenuItemStyle.cs
- ImageIndexConverter.cs
- OrderPreservingMergeHelper.cs
- TypeInitializationException.cs
- Translator.cs
- UnmanagedMarshal.cs
- KeyGestureConverter.cs
- DriveInfo.cs
- XmlTextReaderImplHelpers.cs
- XXXInfos.cs
- PersonalizationStateInfoCollection.cs
- RegexMatch.cs
- XmlSignatureProperties.cs
- DocumentOutline.cs
- HttpCapabilitiesEvaluator.cs
- SerializationTrace.cs
- SqlStatistics.cs
- WebHttpEndpoint.cs
- followingquery.cs
- XmlTextReader.cs
- OdbcCommandBuilder.cs
- SqlEnums.cs
- StateWorkerRequest.cs
- KeyboardDevice.cs
- PeerNearMe.cs
- Label.cs
- TextHintingModeValidation.cs
- ClientConfigurationSystem.cs
- oledbmetadatacolumnnames.cs
- DeferredSelectedIndexReference.cs
- FixedSOMElement.cs
- FocusWithinProperty.cs
- RemotingConfigParser.cs
- EndpointDispatcher.cs
- UserInitiatedRoutedEventPermission.cs
- TypeBuilderInstantiation.cs
- EnlistmentTraceIdentifier.cs
- UnaryNode.cs
- ItemPager.cs
- FixedBufferAttribute.cs
- TrackBar.cs
- ListItemCollection.cs
- NamespaceMapping.cs
- ServicesSection.cs
- DataColumnPropertyDescriptor.cs
- CustomPopupPlacement.cs
- Assert.cs
- DataGridViewEditingControlShowingEventArgs.cs
- XmlElementCollection.cs
- StateManagedCollection.cs
- InstalledFontCollection.cs
- MobileCapabilities.cs
- RadioButtonAutomationPeer.cs
- EventLogLink.cs
- AutoCompleteStringCollection.cs
- ToolStripDesignerUtils.cs
- ForwardPositionQuery.cs
- AstTree.cs
- MetadataArtifactLoaderResource.cs
- DataControlFieldTypeEditor.cs
- SystemThemeKey.cs
- HyperLinkColumn.cs
- WebFormsRootDesigner.cs
- ResourceDisplayNameAttribute.cs
- WindowsStatusBar.cs
- ByteAnimationBase.cs
- Stack.cs
- ObjectDataSourceMethodEventArgs.cs
- SqlCrossApplyToCrossJoin.cs
- PathFigureCollectionConverter.cs
- dbdatarecord.cs
- Avt.cs
- MappingItemCollection.cs
- SubpageParaClient.cs
- ContractMethodInfo.cs
- ConfigXmlText.cs
- XmlComplianceUtil.cs
- DragEvent.cs
- SafeFileMapViewHandle.cs
- CurrencyManager.cs
- SymbolMethod.cs
- TdsRecordBufferSetter.cs
- SerialErrors.cs
- SvcFileManager.cs
- Crc32.cs
- SafeHandles.cs
- DateTimePicker.cs
- AttachmentService.cs
- Exception.cs
- Storyboard.cs
- PageContentCollection.cs
- PropertyItem.cs
- Path.cs
- PasswordDeriveBytes.cs
- HttpConfigurationSystem.cs