Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Markup / DependsOnAttribute.cs / 1 / DependsOnAttribute.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: DependsOnAttribute.cs // // Contents: An attribute that allows declaring that one property // depends on the value of another property. The serialization // system will ensure that the listed property is serialized // prior to the property that this attribute is set on. // Care must be taken to avoid circular dependencies. They // are only detected when writing all the properties in the // cycle. // // Created: 04/28/2005 chuckj // //----------------------------------------------------------------------- using System; namespace System.Windows.Markup { ////// DependsOnAttribute allows declaring that one property /// depends on the value of another property. The serialization /// system will ensure that the listed property is serialized /// prior to the property that this attribute is set on. /// Care must be taken to avoid circular dependencies. They /// are only detected when writing all the properties in the /// cycle. /// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Method, AllowMultiple=true)] public sealed class DependsOnAttribute: Attribute { ////// Constructor for DependsOnAttribute /// /// The name of the property that the property depends on public DependsOnAttribute(string name) { _name = name; } ////// Override of Attribute.TypeId /// public override object TypeId { // this allows multiple DependsOn attributes to show up in the // PropertyDescriptor.Attributes collection. (bug 1611449) get { return this; } } ////// The name of the property that is declared to depend on /// public string Name { get { return _name; } } private string _name; } } // 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
- ResolvedKeyFrameEntry.cs
- PointLight.cs
- DocumentScope.cs
- ObjectAnimationBase.cs
- StateDesigner.Layouts.cs
- CmsInterop.cs
- MatchAttribute.cs
- WebPartUtil.cs
- DataGridViewButtonCell.cs
- SqlProvider.cs
- DataBindingCollection.cs
- dataSvcMapFileLoader.cs
- RemotingSurrogateSelector.cs
- IriParsingElement.cs
- EntityContainerEntitySet.cs
- FollowerQueueCreator.cs
- CopyOnWriteList.cs
- SplineQuaternionKeyFrame.cs
- ToolStripItemRenderEventArgs.cs
- StreamWriter.cs
- Decoder.cs
- PropertyValueUIItem.cs
- RequestBringIntoViewEventArgs.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ProxyManager.cs
- ListItemParagraph.cs
- TreeNodeMouseHoverEvent.cs
- DBSqlParser.cs
- TemplateComponentConnector.cs
- OptimalTextSource.cs
- followingsibling.cs
- AsymmetricSignatureDeformatter.cs
- ColumnClickEvent.cs
- InterleavedZipPartStream.cs
- AttachInfo.cs
- CaseStatement.cs
- JsonFaultDetail.cs
- CalendarDay.cs
- ReaderWriterLock.cs
- ListBindableAttribute.cs
- CodeAttributeArgumentCollection.cs
- EncoderReplacementFallback.cs
- SQLInt16Storage.cs
- UrlAuthFailedErrorFormatter.cs
- GestureRecognizer.cs
- UICuesEvent.cs
- RNGCryptoServiceProvider.cs
- PerspectiveCamera.cs
- CommentEmitter.cs
- GenericNameHandler.cs
- TraceSection.cs
- RelatedImageListAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- RectIndependentAnimationStorage.cs
- WinFormsComponentEditor.cs
- SQLSingle.cs
- ListControlConvertEventArgs.cs
- RoleManagerModule.cs
- _SingleItemRequestCache.cs
- XNodeNavigator.cs
- PropertyValueUIItem.cs
- OracleConnectionString.cs
- TextTreeRootNode.cs
- While.cs
- PathData.cs
- CurrentTimeZone.cs
- CaretElement.cs
- SqlExpander.cs
- CancelEventArgs.cs
- ColorMap.cs
- OperationFormatUse.cs
- NotFiniteNumberException.cs
- CommandLineParser.cs
- SignedInfo.cs
- Int16AnimationUsingKeyFrames.cs
- WebCategoryAttribute.cs
- LayoutSettings.cs
- MediaEntryAttribute.cs
- FullTextLine.cs
- FontNameEditor.cs
- basecomparevalidator.cs
- DataError.cs
- CodeGenerator.cs
- TypeGenericEnumerableViewSchema.cs
- TypeEnumerableViewSchema.cs
- ObjectViewFactory.cs
- DocComment.cs
- DataSourceControl.cs
- HyperLinkStyle.cs
- SrgsSemanticInterpretationTag.cs
- ConnectionStringsSection.cs
- NativeBuffer.cs
- ProfileGroupSettingsCollection.cs
- GregorianCalendarHelper.cs
- AccessDataSource.cs
- AgileSafeNativeMemoryHandle.cs
- MessageVersionConverter.cs
- TextFormattingConverter.cs
- FontWeight.cs
- CodeDirectoryCompiler.cs