Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / LoadedOrUnloadedOperation.cs / 1305600 / 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
- OrCondition.cs
- EncryptedType.cs
- ParamArrayAttribute.cs
- HtmlShimManager.cs
- TreeViewCancelEvent.cs
- TemplateLookupAction.cs
- VectorConverter.cs
- IsolatedStorageFilePermission.cs
- SingleResultAttribute.cs
- DelegatedStream.cs
- Util.cs
- TokenBasedSetEnumerator.cs
- IsolatedStorage.cs
- TouchEventArgs.cs
- StorageSetMapping.cs
- UmAlQuraCalendar.cs
- WebPartConnectionsDisconnectVerb.cs
- OrCondition.cs
- StrokeNodeOperations2.cs
- WsdlExporter.cs
- SiteMembershipCondition.cs
- StringArrayConverter.cs
- IdentifierService.cs
- BulletedListEventArgs.cs
- BinaryReader.cs
- TextElementEnumerator.cs
- KeyValueConfigurationElement.cs
- Aggregates.cs
- XmlAnyElementAttribute.cs
- Pair.cs
- HierarchicalDataBoundControlAdapter.cs
- XmlReflectionMember.cs
- XmlNodeList.cs
- DataGridViewCellCollection.cs
- PrimitiveSchema.cs
- BinaryFormatter.cs
- BuildResultCache.cs
- DocumentPaginator.cs
- SqlDependencyUtils.cs
- CommonDialog.cs
- RequestQueryParser.cs
- GPStream.cs
- EncodingNLS.cs
- AxisAngleRotation3D.cs
- Number.cs
- IItemProperties.cs
- AsyncContentLoadedEventArgs.cs
- InputReport.cs
- SubstitutionResponseElement.cs
- _ShellExpression.cs
- FileIOPermission.cs
- InputBinding.cs
- StringConverter.cs
- DataTable.cs
- FontCacheUtil.cs
- CommandDesigner.cs
- XmlSchemaSimpleTypeUnion.cs
- EncodingInfo.cs
- Events.cs
- FixedTextContainer.cs
- DictionaryTraceRecord.cs
- TableRowGroup.cs
- WebRequestModulesSection.cs
- DeadCharTextComposition.cs
- EntityDescriptor.cs
- CodeTryCatchFinallyStatement.cs
- XmlDigitalSignatureProcessor.cs
- RuleRefElement.cs
- ReadOnlyCollectionBuilder.cs
- ConstraintCollection.cs
- DataGridViewRowHeaderCell.cs
- ImportCatalogPart.cs
- HttpListener.cs
- TemplateContentLoader.cs
- PopupControlService.cs
- SoapFaultCodes.cs
- Executor.cs
- HierarchicalDataBoundControlAdapter.cs
- CustomAttribute.cs
- SplashScreenNativeMethods.cs
- SplineKeyFrames.cs
- GifBitmapEncoder.cs
- ListViewInsertionMark.cs
- PartitionedStream.cs
- ListViewUpdatedEventArgs.cs
- AlphabetConverter.cs
- DataGridViewCheckBoxColumn.cs
- DelayedRegex.cs
- dbenumerator.cs
- StateMachine.cs
- SystemFonts.cs
- CreateUserErrorEventArgs.cs
- StructuredType.cs
- DockPanel.cs
- InternalsVisibleToAttribute.cs
- WmpBitmapDecoder.cs
- XPathPatternBuilder.cs
- XamlFilter.cs
- Journaling.cs
- EqualityComparer.cs