Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / MS / Internal / ComponentModel / PropertyChangeTracker.cs / 1 / PropertyChangeTracker.cs
namespace MS.Internal.ComponentModel { using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Security.Permissions; using System.Windows; ////// A change tracking expression that is used to raise property change events. /// internal class PropertyChangeTracker : Expression { internal PropertyChangeTracker(DependencyObject obj, DependencyProperty property) : base(ExpressionMode.NonSharable | ExpressionMode.ForwardsInvalidations) { Debug.Assert(obj != null && property != null); _object = obj; _property = property; ChangeSources(_object, _property, new DependencySource[] { new DependencySource(obj, property) }); } internal override void OnPropertyInvalidation(DependencyObject d, DependencyPropertyChangedEventArgs args) { DependencyProperty dp = args.Property; if (_object == d && _property == dp && Changed != null) { Changed(_object, EventArgs.Empty); } } internal void Close() { _object = null; _property = null; ChangeSources(null, null, null); } internal bool CanClose { get { return Changed == null; } } internal EventHandler Changed; private DependencyObject _object; private DependencyProperty _property; } } // 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
- UriSection.cs
- CacheMemory.cs
- BindingBase.cs
- LocalizabilityAttribute.cs
- ModifierKeysConverter.cs
- FaultConverter.cs
- TextFragmentEngine.cs
- WebPartZone.cs
- PackUriHelper.cs
- WindowsFormsHost.cs
- DefaultShape.cs
- Win32Interop.cs
- PageSetupDialog.cs
- odbcmetadatacolumnnames.cs
- ReliabilityContractAttribute.cs
- StoryFragments.cs
- TableRowCollection.cs
- GeneralTransform3DTo2DTo3D.cs
- PartialClassGenerationTaskInternal.cs
- WebServiceHostFactory.cs
- ZoneMembershipCondition.cs
- EdmTypeAttribute.cs
- XdrBuilder.cs
- AppliedDeviceFiltersEditor.cs
- SpecialNameAttribute.cs
- HtmlInputButton.cs
- DrawingGroup.cs
- MaterialCollection.cs
- MsmqBindingMonitor.cs
- ApplicationTrust.cs
- SettingsPropertyCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- DBSchemaRow.cs
- OleDbConnection.cs
- ZeroOpNode.cs
- SchemaManager.cs
- VirtualPathData.cs
- ButtonBase.cs
- BufferAllocator.cs
- CompiledRegexRunner.cs
- VerificationAttribute.cs
- LocalizabilityAttribute.cs
- WebBrowserUriTypeConverter.cs
- EntityDesignerUtils.cs
- WebAdminConfigurationHelper.cs
- MenuAutomationPeer.cs
- DataGridViewCellCollection.cs
- StoreUtilities.cs
- SelectedGridItemChangedEvent.cs
- TextParagraphCache.cs
- ImageMap.cs
- TemplateKey.cs
- FastEncoderWindow.cs
- ReadOnlyCollection.cs
- SectionRecord.cs
- DbDataAdapter.cs
- XmlSchemaObject.cs
- DbConnectionStringBuilder.cs
- HtmlControlDesigner.cs
- PKCS1MaskGenerationMethod.cs
- DesignerAdRotatorAdapter.cs
- GridViewCancelEditEventArgs.cs
- BrowserDefinition.cs
- MergeFailedEvent.cs
- RowTypeElement.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- XmlQualifiedName.cs
- WizardPanel.cs
- AssertFilter.cs
- BindingsCollection.cs
- WebRequest.cs
- TemplateLookupAction.cs
- _NegoStream.cs
- PcmConverter.cs
- XmlSchemaType.cs
- WindowInteropHelper.cs
- HttpModuleAction.cs
- HyperLinkColumn.cs
- UserControlBuildProvider.cs
- ContentPlaceHolder.cs
- InputProviderSite.cs
- URL.cs
- PathFigure.cs
- Resources.Designer.cs
- PreviewPageInfo.cs
- SynchronizedPool.cs
- DataTableCollection.cs
- RolePrincipal.cs
- ContractNamespaceAttribute.cs
- Gdiplus.cs
- DuplexSecurityProtocolFactory.cs
- BinaryFormatterSinks.cs
- XmlSchemaCompilationSettings.cs
- ArrangedElement.cs
- PtsHost.cs
- SecurityRequiresReviewAttribute.cs
- Effect.cs
- ImageDrawing.cs
- FileNameEditor.cs
- SamlDoNotCacheCondition.cs