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
- SessionEndingEventArgs.cs
- TreeSet.cs
- DiagnosticTraceSource.cs
- ContextProperty.cs
- EdmScalarPropertyAttribute.cs
- HttpCapabilitiesBase.cs
- PageStatePersister.cs
- SemaphoreFullException.cs
- Pair.cs
- ProcessHostMapPath.cs
- SqlDataSourceEnumerator.cs
- ObjectCloneHelper.cs
- ResourceReferenceExpressionConverter.cs
- CriticalFinalizerObject.cs
- AliasedSlot.cs
- MgmtConfigurationRecord.cs
- PropertyEntry.cs
- WebPartHelpVerb.cs
- SqlRemoveConstantOrderBy.cs
- Atom10FormatterFactory.cs
- DefaultPrintController.cs
- TypeElement.cs
- DataTableMapping.cs
- ElementMarkupObject.cs
- Transform.cs
- HtmlTextBoxAdapter.cs
- FixedFlowMap.cs
- TemplatedMailWebEventProvider.cs
- GatewayIPAddressInformationCollection.cs
- ReaderOutput.cs
- TextBoxAutoCompleteSourceConverter.cs
- EventBindingService.cs
- KernelTypeValidation.cs
- ValueOfAction.cs
- BitmapEffectDrawingContextState.cs
- ContractMethodParameterInfo.cs
- WebPartDisplayMode.cs
- WebPartAuthorizationEventArgs.cs
- ImageSourceConverter.cs
- TextDecorationCollection.cs
- HuffModule.cs
- DependencyPropertyKey.cs
- Filter.cs
- StandardOleMarshalObject.cs
- X509CertificateClaimSet.cs
- ObjectQueryProvider.cs
- PeerApplicationLaunchInfo.cs
- TabControl.cs
- ReversePositionQuery.cs
- Column.cs
- ScaleTransform3D.cs
- NameSpaceEvent.cs
- DynamicActivityXamlReader.cs
- ScriptingJsonSerializationSection.cs
- GraphicsContainer.cs
- GridEntryCollection.cs
- IndexingContentUnit.cs
- RootBrowserWindow.cs
- PagedDataSource.cs
- XmlCountingReader.cs
- XmlDataSourceNodeDescriptor.cs
- AdRotator.cs
- ConstructorExpr.cs
- FileDialog.cs
- RegexNode.cs
- Vector3DKeyFrameCollection.cs
- XmlSecureResolver.cs
- AccessedThroughPropertyAttribute.cs
- ServiceInstallComponent.cs
- PrintEvent.cs
- ToolBarDesigner.cs
- InfocardInteractiveChannelInitializer.cs
- XmlIlGenerator.cs
- FontInfo.cs
- ObjectComplexPropertyMapping.cs
- DateTime.cs
- CreationContext.cs
- Queue.cs
- ComplexPropertyEntry.cs
- LayoutEngine.cs
- Compiler.cs
- BaseCodePageEncoding.cs
- LogPolicy.cs
- SqlClientFactory.cs
- RelatedView.cs
- BoundPropertyEntry.cs
- WindowsStatic.cs
- BitmapDownload.cs
- AbsoluteQuery.cs
- Boolean.cs
- GifBitmapEncoder.cs
- TextTreeRootNode.cs
- TraceUtility.cs
- DocumentReference.cs
- WorkflowOwnerAsyncResult.cs
- FormsIdentity.cs
- DoubleLinkList.cs
- WindowsScroll.cs
- FileDetails.cs
- Symbol.cs