Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- LinkDescriptor.cs
- VirtualizedItemProviderWrapper.cs
- PowerStatus.cs
- Helpers.cs
- filewebrequest.cs
- ClockGroup.cs
- AdornerDecorator.cs
- WebServiceMethodData.cs
- ObservableDictionary.cs
- ReadOnlyTernaryTree.cs
- LambdaCompiler.Generated.cs
- InternalConfigSettingsFactory.cs
- HostingPreferredMapPath.cs
- PageEventArgs.cs
- safemediahandle.cs
- InstanceKeyCollisionException.cs
- UnsafeNativeMethods.cs
- DeviceSpecific.cs
- Font.cs
- ThousandthOfEmRealDoubles.cs
- XmlComment.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- UIPermission.cs
- WebConfigurationHostFileChange.cs
- SafeRightsManagementHandle.cs
- JumpList.cs
- SystemFonts.cs
- OptimizerPatterns.cs
- TypeConvertions.cs
- ProfessionalColors.cs
- BitmapFrame.cs
- ByteFacetDescriptionElement.cs
- Visual3D.cs
- Pair.cs
- KeyConverter.cs
- InvalidAsynchronousStateException.cs
- RootBrowserWindowAutomationPeer.cs
- DeviceContext.cs
- WS2007HttpBindingCollectionElement.cs
- DecimalConverter.cs
- AnnotationStore.cs
- PhoneCall.cs
- WrapPanel.cs
- OleDbPropertySetGuid.cs
- TextBoxLine.cs
- SoapHeader.cs
- RowTypeElement.cs
- ProviderUtil.cs
- ProgressPage.cs
- CompilerCollection.cs
- MimeXmlImporter.cs
- DomainUpDown.cs
- ADConnectionHelper.cs
- PrintPreviewGraphics.cs
- ComplexTypeEmitter.cs
- HtmlLink.cs
- SourceFilter.cs
- PreservationFileReader.cs
- CustomValidator.cs
- XmlBufferReader.cs
- ImmutableObjectAttribute.cs
- Monitor.cs
- UpDownBase.cs
- ICspAsymmetricAlgorithm.cs
- Compress.cs
- StaticFileHandler.cs
- uribuilder.cs
- TemplateColumn.cs
- WebPartEditorOkVerb.cs
- DataSysAttribute.cs
- Binding.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlKeywords.cs
- Condition.cs
- PageContent.cs
- MenuAdapter.cs
- GridToolTip.cs
- SplitterEvent.cs
- VisualState.cs
- HuffmanTree.cs
- MobileErrorInfo.cs
- MissingManifestResourceException.cs
- GACIdentityPermission.cs
- TemplateApplicationHelper.cs
- XmlSchemaSimpleContentRestriction.cs
- DecimalConstantAttribute.cs
- XDeferredAxisSource.cs
- X509Certificate2.cs
- HyperLinkColumn.cs
- ObjectAnimationBase.cs
- DetailsViewRow.cs
- EmptyReadOnlyDictionaryInternal.cs
- ColumnMapVisitor.cs
- XPathDocumentNavigator.cs
- TreeViewEvent.cs
- DesignerDataSchemaClass.cs
- InvokeHandlers.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ToolStripDropDownButton.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs