Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / VideoDrawing.cs / 1 / VideoDrawing.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // Description: VideoDrawing represents a drawing operation that renders // video into a destination rectangle. // // History: // // 2004/11/17 : [....] - Created it. // //--------------------------------------------------------------------------- using System.Diagnostics; namespace System.Windows.Media { ////// The class definition for VideoDrawing /// public sealed partial class VideoDrawing : Drawing { #region Constructors ////// Default VideoDrawing constructor. /// Constructs an object with all properties set to their default values /// public VideoDrawing() { } #endregion #region Internal methods ////// Calls methods on the DrawingContext that are equivalent to the /// Drawing with the Drawing's current value. /// internal override void WalkCurrentValue(DrawingContextWalker ctx) { // We avoid unneccessary ShouldStopWalking checks based on assumptions // about when ShouldStopWalking is set. Guard that assumption with an // assertion. See DrawingGroup.WalkCurrentValue comment for more details. Debug.Assert(!ctx.ShouldStopWalking); ctx.DrawVideo( Player, Rect ); } ////// Video drawings don't require realization updates. /// internal override void PrecomputeCore() { RequiresRealizationUpdates = false; } ////// Video drawings don't need realization updates. /// internal override void UpdateRealizations(RealizationContext realizationContext) { Debug.Assert(RequiresRealizationUpdates == false); } #endregion Internal methods } } // 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
- DataGridViewIntLinkedList.cs
- FontDriver.cs
- BoundingRectTracker.cs
- CollectionViewGroupRoot.cs
- BackgroundWorker.cs
- IdentityManager.cs
- HandlerBase.cs
- IconHelper.cs
- ServiceNotStartedException.cs
- DataObjectFieldAttribute.cs
- ProvidersHelper.cs
- AnalyzedTree.cs
- ConfigsHelper.cs
- FileNotFoundException.cs
- SqlException.cs
- DragEvent.cs
- ConfigXmlAttribute.cs
- StringConverter.cs
- COM2Properties.cs
- CaseInsensitiveOrdinalStringComparer.cs
- _LocalDataStore.cs
- CatalogPartCollection.cs
- WMICapabilities.cs
- dsa.cs
- CssClassPropertyAttribute.cs
- ButtonDesigner.cs
- isolationinterop.cs
- ContractNamespaceAttribute.cs
- WSDualHttpSecurityElement.cs
- Rotation3DKeyFrameCollection.cs
- PolyQuadraticBezierSegment.cs
- StringInfo.cs
- RangeContentEnumerator.cs
- XmlObjectSerializerWriteContextComplex.cs
- WebPartVerb.cs
- AppDomain.cs
- CodeExporter.cs
- LinkConverter.cs
- DeflateStream.cs
- WorkflowItemsPresenter.cs
- IPPacketInformation.cs
- FigureParaClient.cs
- DataSourceCacheDurationConverter.cs
- MetadataHelper.cs
- GridItem.cs
- ApplicationDirectory.cs
- BooleanStorage.cs
- TextElementEditingBehaviorAttribute.cs
- WebPartHeaderCloseVerb.cs
- DataBindingList.cs
- ClusterRegistryConfigurationProvider.cs
- TokenFactoryCredential.cs
- EntityDataSourceSelectingEventArgs.cs
- SqlWriter.cs
- QilScopedVisitor.cs
- SwitchLevelAttribute.cs
- ModelItemCollectionImpl.cs
- RoleManagerSection.cs
- DynamicResourceExtension.cs
- SqlResolver.cs
- ColorDialog.cs
- InternalUserCancelledException.cs
- ZipFileInfoCollection.cs
- FormViewDeletedEventArgs.cs
- xmlfixedPageInfo.cs
- IWorkflowDebuggerService.cs
- HandleExceptionArgs.cs
- OracleParameterCollection.cs
- MemberInfoSerializationHolder.cs
- VerbConverter.cs
- GridViewRow.cs
- MetadataFile.cs
- WebEventCodes.cs
- ActivationServices.cs
- AssemblyCacheEntry.cs
- CompiledELinqQueryState.cs
- LedgerEntryCollection.cs
- ClaimComparer.cs
- filewebresponse.cs
- PropertyGroupDescription.cs
- XmlBufferReader.cs
- ItemCollection.cs
- ComplexTypeEmitter.cs
- SourceLineInfo.cs
- DropDownButton.cs
- AutomationPeer.cs
- TimeManager.cs
- ToolStripManager.cs
- glyphs.cs
- XmlSchemaParticle.cs
- LineInfo.cs
- HtmlInputFile.cs
- MetadataItem_Static.cs
- HtmlInputText.cs
- ResourceManager.cs
- WindowsToolbar.cs
- ImmutableClientRuntime.cs
- Executor.cs
- GeometryCollection.cs
- ItemCollection.cs