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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlInternalConnection.cs
- Zone.cs
- SQLInt32Storage.cs
- Stream.cs
- WebSysDisplayNameAttribute.cs
- ChangePassword.cs
- VisualState.cs
- DrawingState.cs
- RightsManagementPermission.cs
- TextTreeExtractElementUndoUnit.cs
- CFGGrammar.cs
- ProcessManager.cs
- Path.cs
- RectangleHotSpot.cs
- ProcessHostFactoryHelper.cs
- CompileXomlTask.cs
- FixedSOMElement.cs
- StylusShape.cs
- HandlerMappingMemo.cs
- HttpListenerPrefixCollection.cs
- DeflateStream.cs
- SuppressIldasmAttribute.cs
- CodeIdentifier.cs
- DictionarySectionHandler.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ContentType.cs
- UrlAuthFailedErrorFormatter.cs
- SqlServer2KCompatibilityAnnotation.cs
- _LoggingObject.cs
- HttpHandlerActionCollection.cs
- MemberDescriptor.cs
- ToolStripRenderEventArgs.cs
- newinstructionaction.cs
- DynamicField.cs
- BitmapEffectDrawingContent.cs
- SafeLocalMemHandle.cs
- PersonalizablePropertyEntry.cs
- IProducerConsumerCollection.cs
- ELinqQueryState.cs
- GeometryValueSerializer.cs
- ReferenceEqualityComparer.cs
- RelationshipConstraintValidator.cs
- GenericIdentity.cs
- Axis.cs
- BindingsCollection.cs
- EditableTreeList.cs
- DbModificationClause.cs
- Header.cs
- DataSourceConverter.cs
- SmiMetaDataProperty.cs
- StringAnimationBase.cs
- XmlSchemaSet.cs
- CardSpaceShim.cs
- TransformProviderWrapper.cs
- LayoutEditorPart.cs
- FastPropertyAccessor.cs
- RootCodeDomSerializer.cs
- Size3D.cs
- Timeline.cs
- Decimal.cs
- KeyTimeConverter.cs
- TextElementEditingBehaviorAttribute.cs
- FileNotFoundException.cs
- MetabaseSettingsIis7.cs
- HttpRequestCacheValidator.cs
- MemoryPressure.cs
- WebPartZoneCollection.cs
- NavigationWindowAutomationPeer.cs
- PointValueSerializer.cs
- ClientSponsor.cs
- BitmapVisualManager.cs
- MenuItem.cs
- Point3DAnimationBase.cs
- SymbolEqualComparer.cs
- IteratorFilter.cs
- ScopedMessagePartSpecification.cs
- MasterPageParser.cs
- EntityCommandCompilationException.cs
- ConfigurationConverterBase.cs
- TimeManager.cs
- Repeater.cs
- DefaultPropertiesToSend.cs
- VectorCollectionValueSerializer.cs
- DataServiceKeyAttribute.cs
- DataColumn.cs
- CookieProtection.cs
- SymLanguageVendor.cs
- ObjectHandle.cs
- Utilities.cs
- Rect.cs
- RightsManagementPermission.cs
- OracleBoolean.cs
- DbConnectionStringBuilder.cs
- OrderedDictionary.cs
- NodeInfo.cs
- ColumnCollection.cs
- TableRowCollection.cs
- GlyphRun.cs
- Comparer.cs
- Icon.cs