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
- PointF.cs
- MailDefinition.cs
- GPStream.cs
- StylusPointCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- Stroke.cs
- NavigationService.cs
- ActivityInstance.cs
- ListItemConverter.cs
- LexicalChunk.cs
- ActivationServices.cs
- SqlConnectionString.cs
- FormViewUpdateEventArgs.cs
- SubMenuStyle.cs
- GZipUtils.cs
- RoleService.cs
- MessageHeaderAttribute.cs
- ToolboxItem.cs
- XmlSchemaObject.cs
- RotateTransform.cs
- ProvidePropertyAttribute.cs
- ListDataHelper.cs
- TagMapInfo.cs
- InputProcessorProfiles.cs
- MethodResolver.cs
- ByteRangeDownloader.cs
- UserControlParser.cs
- PasswordPropertyTextAttribute.cs
- PolyLineSegment.cs
- ChunkedMemoryStream.cs
- ExpressionVisitor.cs
- TdsParser.cs
- SamlAdvice.cs
- COAUTHIDENTITY.cs
- ManagedFilter.cs
- ButtonBase.cs
- Invariant.cs
- IndexExpression.cs
- EntityDataSourceReferenceGroup.cs
- ConnectionManagementSection.cs
- CheckBoxRenderer.cs
- TypeTypeConverter.cs
- AncillaryOps.cs
- BufferedReadStream.cs
- MenuStrip.cs
- StrokeIntersection.cs
- DropSource.cs
- MdImport.cs
- ModelPerspective.cs
- AsyncResult.cs
- TemplateBindingExtension.cs
- EnumUnknown.cs
- SqlClientMetaDataCollectionNames.cs
- Registry.cs
- System.Data_BID.cs
- PenContexts.cs
- ReflectionUtil.cs
- InputEventArgs.cs
- RangeEnumerable.cs
- TypeBuilder.cs
- ServiceChannelProxy.cs
- ToggleButtonAutomationPeer.cs
- X509Extension.cs
- MultiTouchSystemGestureLogic.cs
- RawMouseInputReport.cs
- ChameleonKey.cs
- SelectorItemAutomationPeer.cs
- TableLayout.cs
- InputLanguageProfileNotifySink.cs
- WebBrowsableAttribute.cs
- EntityTypeEmitter.cs
- ThreadPool.cs
- WebAdminConfigurationHelper.cs
- Range.cs
- DocobjHost.cs
- IDictionary.cs
- OleDbInfoMessageEvent.cs
- BoundPropertyEntry.cs
- ManagedWndProcTracker.cs
- WindowsTokenRoleProvider.cs
- WebSysDisplayNameAttribute.cs
- propertyentry.cs
- DataKey.cs
- ClientFormsIdentity.cs
- ActivityDesignerAccessibleObject.cs
- FormClosedEvent.cs
- RecognizerStateChangedEventArgs.cs
- CombinedGeometry.cs
- CommandDevice.cs
- RawTextInputReport.cs
- CompatibleIComparer.cs
- ProcessHost.cs
- PersonalizationState.cs
- MaskedTextProvider.cs
- BinaryNode.cs
- LinkConverter.cs
- SafeRegistryKey.cs
- KeyFrames.cs
- AgileSafeNativeMemoryHandle.cs
- MultiByteCodec.cs