Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / StyleTypedPropertyAttribute.cs / 1305600 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DynamicDocumentPaginator.cs
- CustomAttribute.cs
- ListChangedEventArgs.cs
- ListViewItem.cs
- CryptoKeySecurity.cs
- View.cs
- Floater.cs
- PrimitiveType.cs
- GridItemProviderWrapper.cs
- FunctionCommandText.cs
- InvalidPropValue.cs
- GridLength.cs
- FastEncoder.cs
- RectangleHotSpot.cs
- PolicyManager.cs
- BufferedGraphicsManager.cs
- PrivilegeNotHeldException.cs
- ForwardPositionQuery.cs
- ListBase.cs
- NullableConverter.cs
- PropertyPath.cs
- PolicyImporterElementCollection.cs
- CredentialCache.cs
- Set.cs
- DocumentSchemaValidator.cs
- printdlgexmarshaler.cs
- TextTreeExtractElementUndoUnit.cs
- ToolStripSeparator.cs
- CleanUpVirtualizedItemEventArgs.cs
- AnimationException.cs
- DefaultClaimSet.cs
- CommandEventArgs.cs
- BaseAutoFormat.cs
- SiteMapNodeItem.cs
- HtmlInputHidden.cs
- AnonymousIdentificationSection.cs
- CompositeActivityCodeGenerator.cs
- StyleSheet.cs
- PropertyOverridesDialog.cs
- SHA1.cs
- EdmFunctionAttribute.cs
- ExpressionQuoter.cs
- SendMessageRecord.cs
- Int64Animation.cs
- ControllableStoryboardAction.cs
- FullTextState.cs
- SpeechAudioFormatInfo.cs
- DefinitionProperties.cs
- RegisteredExpandoAttribute.cs
- BufferedGraphicsManager.cs
- VisualTarget.cs
- VisualProxy.cs
- SizeChangedInfo.cs
- ContractUtils.cs
- SingleObjectCollection.cs
- MetadataItem.cs
- XmlSortKey.cs
- HandlerMappingMemo.cs
- LoginView.cs
- SEHException.cs
- CodeMemberProperty.cs
- XamlFilter.cs
- GradientBrush.cs
- __FastResourceComparer.cs
- DbParameterCollectionHelper.cs
- MimeMapping.cs
- RuleCache.cs
- GridItem.cs
- TextHidden.cs
- Util.cs
- DurationConverter.cs
- ExceptionUtil.cs
- InheritanceContextHelper.cs
- GlobalAllocSafeHandle.cs
- HandleCollector.cs
- CompatibleComparer.cs
- XmlSchemaDatatype.cs
- FileLoadException.cs
- PackagePart.cs
- WindowsProgressbar.cs
- RowVisual.cs
- DataGridViewElement.cs
- ExecutedRoutedEventArgs.cs
- RSAPKCS1KeyExchangeFormatter.cs
- SimpleWebHandlerParser.cs
- PeerNameResolver.cs
- ClientRolePrincipal.cs
- FormViewInsertedEventArgs.cs
- RenderDataDrawingContext.cs
- InkCollectionBehavior.cs
- FlatButtonAppearance.cs
- InternalControlCollection.cs
- CharAnimationUsingKeyFrames.cs
- FontFamilyIdentifier.cs
- ClockController.cs
- Point3D.cs
- Imaging.cs
- GroupDescription.cs
- MainMenu.cs
- HtmlInputReset.cs