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
- SQLChars.cs
- ComplexType.cs
- DataGridCommandEventArgs.cs
- SerializationSectionGroup.cs
- TransactionChannelFaultConverter.cs
- CommandDesigner.cs
- COM2PropertyBuilderUITypeEditor.cs
- TraceUtility.cs
- DataGridItemEventArgs.cs
- XmlSchemaGroupRef.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TextDecorationCollection.cs
- ArgumentNullException.cs
- GeometryDrawing.cs
- SqlClientWrapperSmiStream.cs
- Transform.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- X509Utils.cs
- XslUrlEditor.cs
- CallContext.cs
- ISCIIEncoding.cs
- Profiler.cs
- BindingNavigator.cs
- Variable.cs
- HtmlMeta.cs
- _AutoWebProxyScriptHelper.cs
- MruCache.cs
- SynchronizedDispatch.cs
- ExpressionBuilderCollection.cs
- recordstatefactory.cs
- Crc32.cs
- Quaternion.cs
- Socket.cs
- EventSinkHelperWriter.cs
- DocumentViewerAutomationPeer.cs
- ArgumentNullException.cs
- CuspData.cs
- UpdateTranslator.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Int32RectValueSerializer.cs
- DataGridCell.cs
- DetailsViewUpdatedEventArgs.cs
- Condition.cs
- TextEmbeddedObject.cs
- SplineKeyFrames.cs
- ResourceProperty.cs
- AuthenticationSection.cs
- SecurityContextKeyIdentifierClause.cs
- SQLRoleProvider.cs
- SmtpFailedRecipientException.cs
- Application.cs
- StoreAnnotationsMap.cs
- SafeNativeMethods.cs
- GradientSpreadMethodValidation.cs
- XmlSchemaAll.cs
- CalendarItem.cs
- NullReferenceException.cs
- ListMarkerLine.cs
- EndpointAddressMessageFilterTable.cs
- CorrelationToken.cs
- WmfPlaceableFileHeader.cs
- XsdBuildProvider.cs
- UndoUnit.cs
- NonVisualControlAttribute.cs
- RepeatEnumerable.cs
- WebPartZoneBase.cs
- basemetadatamappingvisitor.cs
- BitmapImage.cs
- webeventbuffer.cs
- VectorAnimationBase.cs
- XmlBinaryReaderSession.cs
- WindowsHyperlink.cs
- QueryOutputWriter.cs
- InstallerTypeAttribute.cs
- AssemblyAttributesGoHere.cs
- WebServiceTypeData.cs
- CommandEventArgs.cs
- NativeObjectSecurity.cs
- RemotingAttributes.cs
- PrefixQName.cs
- SiblingIterators.cs
- AuditLevel.cs
- DataFieldCollectionEditor.cs
- RelationalExpressions.cs
- WorkflowServiceAttributesTypeConverter.cs
- XmlSerializerFactory.cs
- GridItemProviderWrapper.cs
- ExpandButtonVisibilityConverter.cs
- ConstantCheck.cs
- SoapMessage.cs
- _SafeNetHandles.cs
- MemberNameValidator.cs
- RectangleConverter.cs
- Pointer.cs
- AspProxy.cs
- CellNormalizer.cs
- OleDbPermission.cs
- ResXBuildProvider.cs
- StructuredTypeInfo.cs
- Style.cs