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
- PeerNameRecord.cs
- DescendantOverDescendantQuery.cs
- WindowsAuthenticationModule.cs
- HandledMouseEvent.cs
- SpeechAudioFormatInfo.cs
- XhtmlConformanceSection.cs
- DesignerForm.cs
- PasswordRecovery.cs
- DataProtection.cs
- DashStyles.cs
- SourceFileInfo.cs
- ColumnCollection.cs
- RtfToXamlLexer.cs
- METAHEADER.cs
- FixedElement.cs
- SerializerDescriptor.cs
- TransformPattern.cs
- HasRunnableWorkflowEvent.cs
- WebPartConnectionsConnectVerb.cs
- brushes.cs
- FixedTextView.cs
- LastQueryOperator.cs
- ImageCodecInfoPrivate.cs
- XmlNullResolver.cs
- SAPICategories.cs
- DrawingDrawingContext.cs
- ModelItemDictionary.cs
- CompilationSection.cs
- TargetPerspective.cs
- ListViewCancelEventArgs.cs
- GridViewRowCollection.cs
- ConnectionPoolManager.cs
- InlinedAggregationOperatorEnumerator.cs
- PointLightBase.cs
- SpeechSeg.cs
- TraceInternal.cs
- SoapTypeAttribute.cs
- Debugger.cs
- BaseDataList.cs
- HashHelper.cs
- XmlSchemaSet.cs
- AutomationProperties.cs
- GroupStyle.cs
- RotateTransform3D.cs
- VectorCollection.cs
- LinkUtilities.cs
- CustomValidator.cs
- SelectionChangedEventArgs.cs
- HandlerFactoryCache.cs
- MarginsConverter.cs
- DeviceContexts.cs
- CounterCreationDataConverter.cs
- GridSplitterAutomationPeer.cs
- SqlDataAdapter.cs
- InfoCardSymmetricCrypto.cs
- TimeoutHelper.cs
- PointLight.cs
- ToolStripDropDownClosingEventArgs.cs
- FlowLayoutPanel.cs
- InstanceOwnerException.cs
- SqlCacheDependencySection.cs
- Style.cs
- InstallerTypeAttribute.cs
- GeneralTransform.cs
- SqlProviderManifest.cs
- BindMarkupExtensionSerializer.cs
- Models.cs
- DataSourceHelper.cs
- SoapReflectionImporter.cs
- ErrorView.xaml.cs
- CompiledQuery.cs
- DesignerCategoryAttribute.cs
- ArgumentException.cs
- MonthCalendar.cs
- PermissionListSet.cs
- ElementFactory.cs
- SocketPermission.cs
- PeerCollaborationPermission.cs
- TextOptions.cs
- ParseElementCollection.cs
- Transform3DCollection.cs
- ReadOnlyDictionary.cs
- PkcsMisc.cs
- KeyValuePair.cs
- AnchorEditor.cs
- SqlUtil.cs
- XmlDeclaration.cs
- TextElement.cs
- ImageSource.cs
- FtpWebRequest.cs
- X509CertificateValidator.cs
- SpanIndex.cs
- SqlDataSourceConnectionPanel.cs
- PanningMessageFilter.cs
- _ConnectStream.cs
- SortedSet.cs
- XmlAttributeProperties.cs
- NGCPageContentSerializerAsync.cs
- JournalEntryStack.cs
- Semaphore.cs