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
- VariantWrapper.cs
- WeakReferenceKey.cs
- GacUtil.cs
- CommunicationException.cs
- ContextInformation.cs
- WCFServiceClientProxyGenerator.cs
- _AutoWebProxyScriptWrapper.cs
- Size3D.cs
- XmlSchemaRedefine.cs
- SingleTagSectionHandler.cs
- PropertyValueUIItem.cs
- RelatedImageListAttribute.cs
- OutOfMemoryException.cs
- SchemaNames.cs
- WindowsToolbar.cs
- SqlCharStream.cs
- ResourcePermissionBaseEntry.cs
- SqlError.cs
- Literal.cs
- AuthenticationModulesSection.cs
- TreeNodeClickEventArgs.cs
- BitmapEffectInput.cs
- ListBase.cs
- EvidenceTypeDescriptor.cs
- SiteMapNodeItem.cs
- WebBrowser.cs
- ProfessionalColors.cs
- TableHeaderCell.cs
- GridItemCollection.cs
- BitmapEffect.cs
- SliderAutomationPeer.cs
- HttpStreamMessageEncoderFactory.cs
- PrintController.cs
- SpecialFolderEnumConverter.cs
- OracleParameterBinding.cs
- PermissionListSet.cs
- XmlElementList.cs
- ExpressionCopier.cs
- HitTestWithPointDrawingContextWalker.cs
- EntityDataSourceContainerNameItem.cs
- Nullable.cs
- PassportAuthenticationEventArgs.cs
- MultiByteCodec.cs
- CapabilitiesUse.cs
- ImageInfo.cs
- WebControlsSection.cs
- PlanCompilerUtil.cs
- BasicDesignerLoader.cs
- PackageRelationshipCollection.cs
- DrawingCollection.cs
- CryptoSession.cs
- PolygonHotSpot.cs
- EdmFunction.cs
- UIElementParaClient.cs
- Figure.cs
- SqlDataSourceTableQuery.cs
- HttpAsyncResult.cs
- SmiRecordBuffer.cs
- XPathMessageFilterElementComparer.cs
- ContainerVisual.cs
- SafeEventLogWriteHandle.cs
- SoapExtensionTypeElement.cs
- Sql8ConformanceChecker.cs
- Int16Storage.cs
- ToolStripItemRenderEventArgs.cs
- ImageFormatConverter.cs
- InheritedPropertyChangedEventArgs.cs
- AttributeEmitter.cs
- NeutralResourcesLanguageAttribute.cs
- ElapsedEventArgs.cs
- Triplet.cs
- AutomationProperties.cs
- WorkflowWebHostingModule.cs
- MarkupProperty.cs
- AppearanceEditorPart.cs
- WebPartMenuStyle.cs
- WindowsListBox.cs
- StructuredProperty.cs
- Matrix3D.cs
- LogWriteRestartAreaState.cs
- SqlProvider.cs
- StringPropertyBuilder.cs
- UnsafeNativeMethodsPenimc.cs
- EventWaitHandle.cs
- InputLanguageEventArgs.cs
- WasNotInstalledException.cs
- XamlRtfConverter.cs
- ReflectionUtil.cs
- ArgumentsParser.cs
- DrawingCollection.cs
- NativeMethods.cs
- ComponentEditorForm.cs
- InstalledFontCollection.cs
- SafeEventLogWriteHandle.cs
- SpecialNameAttribute.cs
- Button.cs
- DictionaryBase.cs
- Shared.cs
- PackageDocument.cs
- SortedDictionary.cs