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
- TypeDelegator.cs
- ValidatedControlConverter.cs
- securestring.cs
- Condition.cs
- InvalidFilterCriteriaException.cs
- SpanIndex.cs
- TypeLoadException.cs
- PasswordBoxAutomationPeer.cs
- Point4DConverter.cs
- StorageMappingItemCollection.cs
- FrugalList.cs
- ElementMarkupObject.cs
- DynamicMethod.cs
- QilBinary.cs
- TableLayout.cs
- ZipIOModeEnforcingStream.cs
- RootProfilePropertySettingsCollection.cs
- DataGridHelper.cs
- LabelAutomationPeer.cs
- DtdParser.cs
- ScriptIgnoreAttribute.cs
- _HelperAsyncResults.cs
- UpdatePanelTriggerCollection.cs
- BatchWriter.cs
- TransformerConfigurationWizardBase.cs
- SqlProfileProvider.cs
- SchemaTableOptionalColumn.cs
- VisualTarget.cs
- AppDomainFactory.cs
- DbProviderFactory.cs
- ControlPersister.cs
- TemplateKey.cs
- MobileControlsSection.cs
- XPathArrayIterator.cs
- SendKeys.cs
- SerializerWriterEventHandlers.cs
- CodeGroup.cs
- ValidationErrorCollection.cs
- DataTrigger.cs
- ParentUndoUnit.cs
- ColorAnimationBase.cs
- ProfileSection.cs
- XmlTextEncoder.cs
- EventProviderWriter.cs
- PagesSection.cs
- InputProcessorProfilesLoader.cs
- IImplicitResourceProvider.cs
- PageThemeParser.cs
- MD5CryptoServiceProvider.cs
- ArrayHelper.cs
- GridItem.cs
- MultitargetUtil.cs
- System.Data.OracleClient_BID.cs
- PlainXmlDeserializer.cs
- ExitEventArgs.cs
- httpstaticobjectscollection.cs
- XmlAnyAttributeAttribute.cs
- DataPagerField.cs
- SimpleFileLog.cs
- Error.cs
- Comparer.cs
- ColorTranslator.cs
- XpsFontSubsetter.cs
- OdbcConnectionFactory.cs
- PerformanceCounterNameAttribute.cs
- DbQueryCommandTree.cs
- DbReferenceCollection.cs
- SkipStoryboardToFill.cs
- HtmlFormParameterWriter.cs
- RegexBoyerMoore.cs
- PrivateFontCollection.cs
- _StreamFramer.cs
- X509ChainPolicy.cs
- StringConcat.cs
- DebugHandleTracker.cs
- TdsParserSafeHandles.cs
- UInt32.cs
- NameValueConfigurationCollection.cs
- AliasedSlot.cs
- DefaultValidator.cs
- Tuple.cs
- X509UI.cs
- LoginDesigner.cs
- XmlSchemaObject.cs
- CopyNamespacesAction.cs
- DropDownButton.cs
- CaseKeyBox.xaml.cs
- InfoCardTraceRecord.cs
- ContractValidationHelper.cs
- CompositeDataBoundControl.cs
- ColorTranslator.cs
- Menu.cs
- ClientFormsAuthenticationCredentials.cs
- SingleStorage.cs
- VisualStyleTypesAndProperties.cs
- ResourceDisplayNameAttribute.cs
- ObjectHandle.cs
- IListConverters.cs
- EventData.cs
- ProxyManager.cs