Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Quad.cs
- FrameSecurityDescriptor.cs
- WindowsSidIdentity.cs
- CompilationPass2TaskInternal.cs
- WaitHandleCannotBeOpenedException.cs
- CommonDialog.cs
- EntityProviderServices.cs
- XmlQueryType.cs
- Journaling.cs
- SoapSchemaMember.cs
- ItemAutomationPeer.cs
- XmlQuerySequence.cs
- ContextQuery.cs
- CaretElement.cs
- CollectionChangedEventManager.cs
- ContentPosition.cs
- ExtendedPropertyDescriptor.cs
- FrameworkElementAutomationPeer.cs
- HttpCookie.cs
- RegexGroup.cs
- EntityDataSourceViewSchema.cs
- SoapSchemaImporter.cs
- ADRoleFactory.cs
- ClassGenerator.cs
- ExceptionWrapper.cs
- ClientScriptManagerWrapper.cs
- DynamicHyperLink.cs
- Keywords.cs
- Stack.cs
- XamlFilter.cs
- WrappedReader.cs
- SemaphoreFullException.cs
- UpdatePanelTriggerCollection.cs
- DataListItemEventArgs.cs
- VisualTreeHelper.cs
- BamlWriter.cs
- Attributes.cs
- RawAppCommandInputReport.cs
- TextMarkerSource.cs
- GetPageCompletedEventArgs.cs
- JulianCalendar.cs
- SmiConnection.cs
- EntityDataSourceDesignerHelper.cs
- DependencyPropertyDescriptor.cs
- VisualState.cs
- SimpleBitVector32.cs
- SizeChangedEventArgs.cs
- BindingMemberInfo.cs
- MonitorWrapper.cs
- ZipIOLocalFileHeader.cs
- FileLogRecordStream.cs
- FileSecurity.cs
- Attributes.cs
- StringInfo.cs
- datacache.cs
- LinkedResource.cs
- ControllableStoryboardAction.cs
- Variable.cs
- StreamReader.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SQLInt16Storage.cs
- dataSvcMapFileLoader.cs
- TransactionScopeDesigner.cs
- Part.cs
- RoleBoolean.cs
- ObjectSecurityT.cs
- ZoneButton.cs
- SoapIgnoreAttribute.cs
- GridViewHeaderRowPresenter.cs
- Brush.cs
- EditableTreeList.cs
- PopupEventArgs.cs
- WebPartCatalogCloseVerb.cs
- ComponentEditorForm.cs
- ListBoxItem.cs
- Queue.cs
- SynthesizerStateChangedEventArgs.cs
- StrokeNodeEnumerator.cs
- XPathMessageFilterElementComparer.cs
- NameNode.cs
- ApplicationSecurityInfo.cs
- PropertyCollection.cs
- ColumnResizeUndoUnit.cs
- SafeRightsManagementHandle.cs
- DataPagerFieldCommandEventArgs.cs
- XmlSchemas.cs
- WsdlBuildProvider.cs
- DbQueryCommandTree.cs
- sapiproxy.cs
- SyndicationDeserializer.cs
- WebResourceAttribute.cs
- DataGridViewCellFormattingEventArgs.cs
- _DisconnectOverlappedAsyncResult.cs
- InputLangChangeRequestEvent.cs
- StringFormat.cs
- EntityWrapperFactory.cs
- CapacityStreamGeometryContext.cs
- ChtmlMobileTextWriter.cs
- BindingContext.cs
- DataColumnPropertyDescriptor.cs