Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / MS / Internal / LoadedOrUnloadedOperation.cs / 1 / LoadedOrUnloadedOperation.cs
//------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // A pending loaded or unloaded operation, to be run by the MediaContext. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; // Debug.Assert using System.Windows; // DependencyObject using System.Windows.Threading; // DispatcherOperationCallback using MS.Internal.PresentationCore; // [FriendAccessAllowed] namespace MS.Internal { [FriendAccessAllowed] // Built into Core, also used by Framework. internal class LoadedOrUnloadedOperation { internal LoadedOrUnloadedOperation( DispatcherOperationCallback callback, DependencyObject target) { Debug.Assert(callback != null && target != null); _callback = callback; _target = target; } internal void DoWork() { if (!_cancelled) { _callback(_target); } } internal void Cancel() { _cancelled = true; } private DispatcherOperationCallback _callback; private DependencyObject _target; private bool _cancelled; } } // 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
- RestClientProxyHandler.cs
- SqlRetyper.cs
- ValidationEventArgs.cs
- IgnorePropertiesAttribute.cs
- ListDictionary.cs
- FieldNameLookup.cs
- XPathConvert.cs
- ListViewAutomationPeer.cs
- RuntimeResourceSet.cs
- IDReferencePropertyAttribute.cs
- CorrelationInitializer.cs
- BaseTemplateBuildProvider.cs
- UserMapPath.cs
- Decoder.cs
- PointConverter.cs
- TypedElement.cs
- EntityDataSourceSelectingEventArgs.cs
- WebConvert.cs
- Attributes.cs
- SQLMoney.cs
- SynchronizingStream.cs
- BuildManagerHost.cs
- Group.cs
- TabletDevice.cs
- UIElementAutomationPeer.cs
- HtmlInputControl.cs
- TransformCollection.cs
- GridViewCancelEditEventArgs.cs
- CachedPathData.cs
- metrodevice.cs
- HeaderLabel.cs
- DataObjectMethodAttribute.cs
- DeploymentSectionCache.cs
- _Rfc2616CacheValidators.cs
- DrawingCollection.cs
- AddInStore.cs
- SecurityCriticalDataForSet.cs
- SafeNativeMethods.cs
- DataBindingsDialog.cs
- TagPrefixCollection.cs
- CalendarDesigner.cs
- ScrollChrome.cs
- TextPatternIdentifiers.cs
- Calendar.cs
- DateTimeFormat.cs
- CodePrimitiveExpression.cs
- DispatcherHooks.cs
- DataGridViewCellCancelEventArgs.cs
- DefinitionBase.cs
- InstallerTypeAttribute.cs
- TreeNodeBindingDepthConverter.cs
- HttpHandlersInstallComponent.cs
- XmlConvert.cs
- OracleParameter.cs
- ExclusiveCanonicalizationTransform.cs
- ReferenceEqualityComparer.cs
- unsafenativemethodsother.cs
- ViewStateModeByIdAttribute.cs
- SafeMILHandle.cs
- HttpConfigurationContext.cs
- ListItemConverter.cs
- SettingsProperty.cs
- AudioSignalProblemOccurredEventArgs.cs
- FileDataSourceCache.cs
- TypeInformation.cs
- OleDbErrorCollection.cs
- PasswordBox.cs
- XmlDataSourceView.cs
- PreDigestedSignedInfo.cs
- PageCache.cs
- ThaiBuddhistCalendar.cs
- PropertyBuilder.cs
- MatrixIndependentAnimationStorage.cs
- ConnectionStringSettings.cs
- GridViewRowPresenterBase.cs
- SecurityException.cs
- SafeEventLogWriteHandle.cs
- SqlLiftIndependentRowExpressions.cs
- ColumnClickEvent.cs
- LinqExpressionNormalizer.cs
- StrongNameUtility.cs
- BoundField.cs
- MobileListItem.cs
- Part.cs
- ReferenceEqualityComparer.cs
- FileVersion.cs
- OutputCacheProfileCollection.cs
- BeginEvent.cs
- WebPartManager.cs
- HighlightVisual.cs
- Console.cs
- AsymmetricAlgorithm.cs
- _ConnectOverlappedAsyncResult.cs
- SemanticBasicElement.cs
- File.cs
- RegexTree.cs
- unsafenativemethodstextservices.cs
- NetworkCredential.cs
- RC2CryptoServiceProvider.cs
- DataStreamFromComStream.cs