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
- DataTableCollection.cs
- DeviceContext2.cs
- StyleSelector.cs
- ImageSource.cs
- SoapCodeExporter.cs
- LoginDesigner.cs
- ExtendedProtectionPolicyElement.cs
- MenuCommandsChangedEventArgs.cs
- XpsSerializationManagerAsync.cs
- MetadataItem.cs
- CookieHandler.cs
- DataSourceXmlSerializer.cs
- TextTreeTextNode.cs
- _TLSstream.cs
- mediaeventargs.cs
- XmlSchemaGroup.cs
- Activation.cs
- ThrowHelper.cs
- FormCollection.cs
- DirectionalAction.cs
- DynamicRouteExpression.cs
- PlatformCulture.cs
- PageStatePersister.cs
- ZipPackagePart.cs
- PixelShader.cs
- XmlChoiceIdentifierAttribute.cs
- Model3D.cs
- DefaultTextStoreTextComposition.cs
- WebPartCatalogCloseVerb.cs
- StrokeFIndices.cs
- PropertyChangingEventArgs.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- MessageBox.cs
- RenderingEventArgs.cs
- ThemeDirectoryCompiler.cs
- ImageSourceConverter.cs
- XmlAnyElementAttributes.cs
- Win32MouseDevice.cs
- ScrollPattern.cs
- BindingCompleteEventArgs.cs
- List.cs
- CollectionBuilder.cs
- UserControlCodeDomTreeGenerator.cs
- ZipIOLocalFileDataDescriptor.cs
- ClientSettingsStore.cs
- HostExecutionContextManager.cs
- XmlEncodedRawTextWriter.cs
- XmlDigitalSignatureProcessor.cs
- DebugView.cs
- Calendar.cs
- MtomMessageEncodingBindingElement.cs
- ArrayElementGridEntry.cs
- PeerEndPoint.cs
- mediapermission.cs
- SqlCommandBuilder.cs
- HealthMonitoringSection.cs
- TriggerCollection.cs
- ExtendedProtectionPolicyElement.cs
- BitmapData.cs
- OutputCacheSettingsSection.cs
- DateTimeFormat.cs
- mil_commands.cs
- OracleConnection.cs
- ClusterSafeNativeMethods.cs
- EventItfInfo.cs
- SchemaNotation.cs
- Types.cs
- HTTPNotFoundHandler.cs
- XmlSequenceWriter.cs
- PreviewKeyDownEventArgs.cs
- DataBoundControlDesigner.cs
- IsolatedStorageException.cs
- LocalClientSecuritySettings.cs
- Currency.cs
- Point3DAnimationBase.cs
- HtmlElementErrorEventArgs.cs
- GenericPrincipal.cs
- GenerateTemporaryTargetAssembly.cs
- DataViewSettingCollection.cs
- SystemIPInterfaceProperties.cs
- PropertyPathWorker.cs
- GridViewSelectEventArgs.cs
- ProtectedConfigurationProviderCollection.cs
- LambdaCompiler.cs
- FontInfo.cs
- DataGridViewComboBoxColumn.cs
- XmlSchemaObjectCollection.cs
- SimpleBitVector32.cs
- GraphicsPath.cs
- MessageQueueTransaction.cs
- CacheOutputQuery.cs
- PeerTransportSecurityElement.cs
- SmiEventSink_DeferedProcessing.cs
- XmlProcessingInstruction.cs
- XmlSchemaSimpleType.cs
- Size.cs
- EncoderFallback.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- XhtmlConformanceSection.cs
- ImpersonateTokenRef.cs