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
- VersionedStreamOwner.cs
- MetadataArtifactLoaderFile.cs
- ResourceProperty.cs
- ToolBarButtonClickEvent.cs
- Switch.cs
- TranslateTransform3D.cs
- UserMapPath.cs
- InkCanvasFeedbackAdorner.cs
- BoolExpressionVisitors.cs
- DbProviderFactories.cs
- DiffuseMaterial.cs
- SQLByte.cs
- PersistChildrenAttribute.cs
- OdbcConnectionStringbuilder.cs
- TextEndOfParagraph.cs
- RemotingConfiguration.cs
- XmlSchemaChoice.cs
- Graph.cs
- XmlDocumentSerializer.cs
- EncodingInfo.cs
- XmlSchemaException.cs
- Soap11ServerProtocol.cs
- Icon.cs
- JoinQueryOperator.cs
- Effect.cs
- ToolStripOverflow.cs
- SettingsBindableAttribute.cs
- TextProperties.cs
- GlyphRunDrawing.cs
- CurrencyManager.cs
- Button.cs
- PerformanceCounterPermissionAttribute.cs
- ProgramPublisher.cs
- XamlReader.cs
- EditorPartCollection.cs
- Int32Animation.cs
- CryptoStream.cs
- FunctionImportElement.cs
- PipelineModuleStepContainer.cs
- PropertyPath.cs
- IMembershipProvider.cs
- CompilerLocalReference.cs
- TargetPerspective.cs
- CancelRequestedQuery.cs
- OdbcReferenceCollection.cs
- Predicate.cs
- CommonObjectSecurity.cs
- InfoCardUIAgent.cs
- PopupControlService.cs
- TextAction.cs
- WindowsTooltip.cs
- GradientSpreadMethodValidation.cs
- ReadOnlyDictionary.cs
- DataSourceHelper.cs
- AutomationEvent.cs
- EnumDataContract.cs
- TypeUnloadedException.cs
- WsdlEndpointConversionContext.cs
- EnumValAlphaComparer.cs
- CreateParams.cs
- DataColumnMapping.cs
- GridViewRowPresenter.cs
- Rectangle.cs
- PartialTrustVisibleAssemblyCollection.cs
- HttpRequestCacheValidator.cs
- FixedTextSelectionProcessor.cs
- GradientStopCollection.cs
- DecimalStorage.cs
- OleDbCommandBuilder.cs
- input.cs
- LocatorBase.cs
- ArcSegment.cs
- TextClipboardData.cs
- QilTargetType.cs
- WorkflowMarkupSerializerMapping.cs
- PipelineModuleStepContainer.cs
- DurableInstanceProvider.cs
- ItemsChangedEventArgs.cs
- diagnosticsswitches.cs
- AxisAngleRotation3D.cs
- LogStore.cs
- ColorTranslator.cs
- Cursors.cs
- SerializableAttribute.cs
- FlagsAttribute.cs
- XmlValidatingReader.cs
- SecureUICommand.cs
- EncoderParameters.cs
- ListControl.cs
- SmiContext.cs
- Int32Animation.cs
- ControlTemplate.cs
- ConfigXmlAttribute.cs
- VisualCollection.cs
- Identifier.cs
- DbConvert.cs
- DesignerEditorPartChrome.cs
- Size.cs
- StartUpEventArgs.cs
- Options.cs