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
- XmlSchemaDocumentation.cs
- Imaging.cs
- GeometryHitTestResult.cs
- PersonalizationStateInfo.cs
- Stroke.cs
- SmtpMail.cs
- UserMapPath.cs
- UniqueIdentifierService.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- WebPartCatalogCloseVerb.cs
- StatusBar.cs
- AspProxy.cs
- TaskCanceledException.cs
- InvalidOperationException.cs
- DataIdProcessor.cs
- RoleBoolean.cs
- CodeChecksumPragma.cs
- SqlTriggerAttribute.cs
- CodeSubDirectoriesCollection.cs
- DataGridViewTopLeftHeaderCell.cs
- Content.cs
- PreservationFileWriter.cs
- SafeNativeMethods.cs
- CaretElement.cs
- IconConverter.cs
- DataControlReference.cs
- CachedPathData.cs
- Int32AnimationBase.cs
- DesignerObjectListAdapter.cs
- SrgsDocumentParser.cs
- IntSecurity.cs
- TraceRecord.cs
- versioninfo.cs
- Matrix.cs
- EqualityArray.cs
- VectorValueSerializer.cs
- BuildProviderInstallComponent.cs
- DispatcherHooks.cs
- SolidColorBrush.cs
- XmlHelper.cs
- Win32Interop.cs
- RegisteredExpandoAttribute.cs
- CssTextWriter.cs
- SspiHelper.cs
- MailHeaderInfo.cs
- CollectionViewGroupInternal.cs
- CompModSwitches.cs
- Zone.cs
- ConfigurationException.cs
- MemberInfoSerializationHolder.cs
- VisualStyleRenderer.cs
- SmiEventSink_Default.cs
- DrawListViewItemEventArgs.cs
- SqlTransaction.cs
- MethodCallExpression.cs
- RadioButtonList.cs
- CachedCompositeFamily.cs
- NotifyParentPropertyAttribute.cs
- RelationshipWrapper.cs
- SectionInput.cs
- SqlGatherProducedAliases.cs
- RepeatBehaviorConverter.cs
- ContentPlaceHolder.cs
- ScriptIgnoreAttribute.cs
- DrawingDrawingContext.cs
- BrowserInteropHelper.cs
- EdmProperty.cs
- DataStreamFromComStream.cs
- PersonalizationProviderCollection.cs
- SqlEnums.cs
- SerializationException.cs
- SqlException.cs
- SoapClientProtocol.cs
- SeverityFilter.cs
- DateTimeStorage.cs
- XmlQueryOutput.cs
- ColorPalette.cs
- FontFamily.cs
- XPathException.cs
- RelationshipWrapper.cs
- FixedTextView.cs
- DoubleLink.cs
- Literal.cs
- DrawingState.cs
- UInt16Converter.cs
- CompiledXpathExpr.cs
- Membership.cs
- RsaSecurityToken.cs
- MD5Cng.cs
- DefaultClaimSet.cs
- AspCompat.cs
- SqlConnectionPoolProviderInfo.cs
- Cursor.cs
- Codec.cs
- CheckBoxList.cs
- Options.cs
- HasCopySemanticsAttribute.cs
- XmlDictionaryString.cs
- ObjectCloneHelper.cs
- ElementHostAutomationPeer.cs