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
- XmlStringTable.cs
- FreezableCollection.cs
- ExpandSegment.cs
- ColumnHeaderCollectionEditor.cs
- TextAdaptor.cs
- TimelineGroup.cs
- ResourcesBuildProvider.cs
- PartialList.cs
- PreviewPageInfo.cs
- RootBrowserWindow.cs
- Parser.cs
- XmlILModule.cs
- DrawingContextWalker.cs
- ExpressionBuilderCollection.cs
- DockProviderWrapper.cs
- _SafeNetHandles.cs
- AssemblyInfo.cs
- MouseActionValueSerializer.cs
- SpeechSeg.cs
- WebScriptClientGenerator.cs
- PostBackTrigger.cs
- UnionCqlBlock.cs
- WindowsImpersonationContext.cs
- SelectedCellsCollection.cs
- PageThemeParser.cs
- DllNotFoundException.cs
- ContractMethodParameterInfo.cs
- CompilationRelaxations.cs
- MessageQueueException.cs
- BitmapSource.cs
- ConfigurationSectionGroupCollection.cs
- WasHostedComPlusFactory.cs
- InputElement.cs
- TemplateBindingExtensionConverter.cs
- ToolStripPanelRenderEventArgs.cs
- PropertyChangedEventManager.cs
- FrameworkElementFactory.cs
- XmlNullResolver.cs
- PolicyLevel.cs
- DeviceSpecificDialogCachedState.cs
- DoubleAnimationBase.cs
- EditorZoneBase.cs
- InputScopeManager.cs
- BamlRecordReader.cs
- FunctionNode.cs
- TableRow.cs
- SemanticValue.cs
- XmlToDatasetMap.cs
- WinEventHandler.cs
- UInt16.cs
- XmlSerializationGeneratedCode.cs
- WpfPayload.cs
- ConstraintConverter.cs
- autovalidator.cs
- TemplateKeyConverter.cs
- MemoryMappedView.cs
- SQLStringStorage.cs
- BoolExpression.cs
- Int32CAMarshaler.cs
- SmiXetterAccessMap.cs
- Cursors.cs
- _SafeNetHandles.cs
- BooleanProjectedSlot.cs
- SqlInfoMessageEvent.cs
- OLEDB_Util.cs
- CompModSwitches.cs
- GridViewUpdateEventArgs.cs
- SynchronizationLockException.cs
- BindingMemberInfo.cs
- Rights.cs
- DesignerView.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- TraceListener.cs
- SendReply.cs
- VectorValueSerializer.cs
- ZipIOCentralDirectoryBlock.cs
- MessageDroppedTraceRecord.cs
- FixedSOMElement.cs
- TextDataBindingHandler.cs
- Menu.cs
- StickyNoteHelper.cs
- PeekCompletedEventArgs.cs
- DesignerForm.cs
- MenuCommands.cs
- DocumentReference.cs
- CodeGen.cs
- AsymmetricSignatureFormatter.cs
- TextSchema.cs
- SoapElementAttribute.cs
- ImplicitInputBrush.cs
- LabelTarget.cs
- EpmSyndicationContentDeSerializer.cs
- WebPartEditVerb.cs
- querybuilder.cs
- DataSourceUtil.cs
- MethodBuilder.cs
- CorruptingExceptionCommon.cs
- XamlSerializationHelper.cs
- ContextMenuStripActionList.cs
- HtmlInputSubmit.cs