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
- MachineSettingsSection.cs
- DataServiceRequestException.cs
- TypefaceCollection.cs
- ProgressBarBrushConverter.cs
- DesignerAttributeInfo.cs
- SoundPlayerAction.cs
- _IPv4Address.cs
- Atom10FormatterFactory.cs
- TreeViewHitTestInfo.cs
- InkCanvasSelectionAdorner.cs
- nulltextcontainer.cs
- Color.cs
- CharConverter.cs
- RegisteredDisposeScript.cs
- TreeView.cs
- ReliableSessionElement.cs
- SqlAggregateChecker.cs
- MaskDescriptor.cs
- ApplicationTrust.cs
- SizeLimitedCache.cs
- DecoderExceptionFallback.cs
- ColorConvertedBitmapExtension.cs
- WindowsSidIdentity.cs
- TextMetrics.cs
- WindowsListViewScroll.cs
- TypeUsage.cs
- AttributeSetAction.cs
- ProcessModule.cs
- TextRangeSerialization.cs
- Roles.cs
- GreenMethods.cs
- SingleConverter.cs
- CompiledRegexRunnerFactory.cs
- DecimalKeyFrameCollection.cs
- EnumerableValidator.cs
- ThreadExceptionEvent.cs
- AnnotationHelper.cs
- Renderer.cs
- DataContractJsonSerializer.cs
- EnumType.cs
- TypeDescriptionProvider.cs
- UnmanagedBitmapWrapper.cs
- LoginUtil.cs
- VirtualDirectoryMappingCollection.cs
- Trace.cs
- StackBuilderSink.cs
- WebBrowserHelper.cs
- CursorInteropHelper.cs
- TimeSpanOrInfiniteConverter.cs
- DataObjectFieldAttribute.cs
- ParallelTimeline.cs
- DiscardableAttribute.cs
- LinkedList.cs
- EncodingDataItem.cs
- CngKeyBlobFormat.cs
- XmlSchemaExporter.cs
- Executor.cs
- DataGridViewLinkCell.cs
- WeakReference.cs
- DesignOnlyAttribute.cs
- SeekableReadStream.cs
- FrameworkContextData.cs
- FieldMetadata.cs
- SchemaImporterExtensionElement.cs
- TypographyProperties.cs
- WinFormsSecurity.cs
- PersonalizationAdministration.cs
- UrlPropertyAttribute.cs
- TrackingProfile.cs
- XmlTypeAttribute.cs
- HtmlInputText.cs
- ExternalException.cs
- ParserStack.cs
- ApplicationHost.cs
- PopupRoot.cs
- DefaultValueAttribute.cs
- CursorConverter.cs
- ZeroOpNode.cs
- IsolatedStorage.cs
- Button.cs
- StrongNameUtility.cs
- DbException.cs
- DynamicMetaObject.cs
- DSACryptoServiceProvider.cs
- IxmlLineInfo.cs
- Utils.cs
- CodeTypeDeclaration.cs
- TextViewSelectionProcessor.cs
- FontInfo.cs
- ActivityMarkupSerializationProvider.cs
- EntityViewGenerationAttribute.cs
- PKCS1MaskGenerationMethod.cs
- ProcessHostConfigUtils.cs
- HotSpotCollection.cs
- GridEntry.cs
- DiagnosticsConfiguration.cs
- GPRECTF.cs
- XPathParser.cs
- InputManager.cs
- EnumerableWrapperWeakToStrong.cs