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
- SupportingTokenParameters.cs
- TrustLevelCollection.cs
- AdRotatorDesigner.cs
- FloaterParagraph.cs
- DataGridState.cs
- RtfToken.cs
- DataGridViewCellMouseEventArgs.cs
- ConfigurationFileMap.cs
- CultureData.cs
- control.ime.cs
- ReturnValue.cs
- JoinQueryOperator.cs
- SegmentInfo.cs
- SqlComparer.cs
- ObjectDataSourceSelectingEventArgs.cs
- ReferencedCollectionType.cs
- ResourceDictionary.cs
- BooleanToVisibilityConverter.cs
- _AutoWebProxyScriptWrapper.cs
- MultiSelectRootGridEntry.cs
- xmlglyphRunInfo.cs
- AuthenticationModuleElement.cs
- ValidateNames.cs
- StatusBarPanel.cs
- SegmentInfo.cs
- Animatable.cs
- ManagementObjectSearcher.cs
- SQLGuidStorage.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DataGridViewColumnStateChangedEventArgs.cs
- BinaryWriter.cs
- PrinterResolution.cs
- CheckBox.cs
- SymmetricAlgorithm.cs
- DesignerMetadata.cs
- UidManager.cs
- BinaryOperationBinder.cs
- ConfigurationException.cs
- EndpointBehaviorElementCollection.cs
- BufferAllocator.cs
- ListItemsPage.cs
- EdmProperty.cs
- GACIdentityPermission.cs
- SerializableAttribute.cs
- SecurityCapabilities.cs
- QilTypeChecker.cs
- XmlNamedNodeMap.cs
- TextControlDesigner.cs
- ComEventsInfo.cs
- DateTime.cs
- LinkArea.cs
- _SSPIWrapper.cs
- ConfigXmlDocument.cs
- WebPartConnectionsConfigureVerb.cs
- AutomationProperties.cs
- ContractComponent.cs
- AvTraceDetails.cs
- ButtonChrome.cs
- DataGridViewRowsAddedEventArgs.cs
- PaperSize.cs
- ObjectContext.cs
- ServerIdentity.cs
- PropertyInfoSet.cs
- OdbcDataReader.cs
- DelegatingConfigHost.cs
- Convert.cs
- SqlConnectionManager.cs
- NamedObject.cs
- WaitHandle.cs
- TypeElementCollection.cs
- SoapAttributeOverrides.cs
- NativeActivityTransactionContext.cs
- MouseGestureValueSerializer.cs
- FastEncoderWindow.cs
- CommonRemoteMemoryBlock.cs
- CroppedBitmap.cs
- PlacementWorkspace.cs
- DataSourceXmlClassAttribute.cs
- SqlException.cs
- QuaternionAnimation.cs
- PropertyGridEditorPart.cs
- MouseGestureConverter.cs
- ContentWrapperAttribute.cs
- CopyOnWriteList.cs
- PersonalizationState.cs
- NegotiateStream.cs
- BuildProviderCollection.cs
- OracleDateTime.cs
- Oid.cs
- ResXResourceWriter.cs
- CardSpacePolicyElement.cs
- ThrowHelper.cs
- TableSectionStyle.cs
- KnownColorTable.cs
- ColorBlend.cs
- AttributeQuery.cs
- LifetimeServices.cs
- processwaithandle.cs
- ClientScriptManager.cs
- SHA384CryptoServiceProvider.cs