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
- CryptoProvider.cs
- EditingMode.cs
- TogglePattern.cs
- SettingsSavedEventArgs.cs
- OracleBoolean.cs
- FileClassifier.cs
- EllipseGeometry.cs
- ServiceProviders.cs
- BoundsDrawingContextWalker.cs
- PointHitTestResult.cs
- RijndaelManaged.cs
- SyndicationItem.cs
- newinstructionaction.cs
- IISUnsafeMethods.cs
- _UriSyntax.cs
- InvalidateEvent.cs
- Size3D.cs
- DesignerActionListCollection.cs
- MasterPageParser.cs
- MultipartContentParser.cs
- ScaleTransform.cs
- OleDbRowUpdatedEvent.cs
- WindowsHyperlink.cs
- HitTestResult.cs
- XmlSchemaSimpleContentExtension.cs
- NumberSubstitution.cs
- ObjectPropertyMapping.cs
- PenCursorManager.cs
- ObjectHelper.cs
- TypeConverterBase.cs
- MatrixIndependentAnimationStorage.cs
- ImmutableAssemblyCacheEntry.cs
- XmlEnumAttribute.cs
- TextViewSelectionProcessor.cs
- SocketElement.cs
- Positioning.cs
- SafeRightsManagementSessionHandle.cs
- DbMetaDataCollectionNames.cs
- SlipBehavior.cs
- SimpleTypeResolver.cs
- ObjectStateEntryDbDataRecord.cs
- AttributeCollection.cs
- RangeBaseAutomationPeer.cs
- TrackingCondition.cs
- ClonableStack.cs
- MonitorWrapper.cs
- XPathExpr.cs
- GlyphInfoList.cs
- SID.cs
- RecognizerInfo.cs
- XmlArrayItemAttributes.cs
- DoWorkEventArgs.cs
- DocumentPageViewAutomationPeer.cs
- Math.cs
- Directory.cs
- Argument.cs
- Button.cs
- VirtualStackFrame.cs
- ZipIOExtraField.cs
- DataGridCellAutomationPeer.cs
- TextDecorationUnitValidation.cs
- RotateTransform.cs
- PeerSecurityHelpers.cs
- SystemIcmpV6Statistics.cs
- ToolBar.cs
- SrgsRulesCollection.cs
- SQLInt64.cs
- IfAction.cs
- ByteViewer.cs
- PrinterSettings.cs
- Geometry.cs
- CompilerResults.cs
- CacheChildrenQuery.cs
- Floater.cs
- XomlDesignerLoader.cs
- BooleanExpr.cs
- AnimationException.cs
- BindingNavigator.cs
- XPathBuilder.cs
- CapabilitiesRule.cs
- StatusBarAutomationPeer.cs
- ISSmlParser.cs
- PanelDesigner.cs
- PrimitiveXmlSerializers.cs
- AddingNewEventArgs.cs
- CodeSnippetCompileUnit.cs
- VisualStyleTypesAndProperties.cs
- Figure.cs
- NetworkInformationPermission.cs
- DataMisalignedException.cs
- DrawingVisualDrawingContext.cs
- BooleanFunctions.cs
- Version.cs
- ProfilePropertySettings.cs
- SqlInfoMessageEvent.cs
- TemplateControl.cs
- CharEntityEncoderFallback.cs
- ReflectionHelper.cs
- JsonXmlDataContract.cs
- log.cs