Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / 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 : timothyc - 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. // // Description: VideoDrawing represents a drawing operation that renders // video into a destination rectangle. // // History: // // 2004/11/17 : timothyc - 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Misc.cs
- PolygonHotSpot.cs
- StandardRuntimeEnumValidator.cs
- BulletedList.cs
- CancelEventArgs.cs
- Function.cs
- TextEndOfParagraph.cs
- MultiPropertyDescriptorGridEntry.cs
- WebPartActionVerb.cs
- ExceptionHelpers.cs
- IconConverter.cs
- HttpListenerContext.cs
- SoapFault.cs
- CodeCommentStatementCollection.cs
- WindowAutomationPeer.cs
- QueryOperationResponseOfT.cs
- QuaternionAnimation.cs
- SessionPageStatePersister.cs
- PreProcessor.cs
- DetailsViewRow.cs
- SelectionService.cs
- FlowDocumentView.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlMemberMapping.cs
- BinHexDecoder.cs
- Simplifier.cs
- TrackingDataItem.cs
- EventProviderBase.cs
- ProcessModelSection.cs
- ImportContext.cs
- KeyToListMap.cs
- DuplicateWaitObjectException.cs
- SecurityState.cs
- AlternateViewCollection.cs
- StateChangeEvent.cs
- SR.cs
- X509Certificate2Collection.cs
- CornerRadius.cs
- SecuritySessionClientSettings.cs
- DbProviderFactories.cs
- BrowsableAttribute.cs
- PaginationProgressEventArgs.cs
- DiagnosticsElement.cs
- AssemblyNameProxy.cs
- _NestedMultipleAsyncResult.cs
- EntityContainerAssociationSet.cs
- TypeUnloadedException.cs
- ChangeNode.cs
- CreateDataSourceDialog.cs
- SspiNegotiationTokenProviderState.cs
- CustomMenuItemCollection.cs
- Span.cs
- _NetRes.cs
- DocumentGridContextMenu.cs
- SelectionProcessor.cs
- ConfigurationErrorsException.cs
- AnnotationResourceCollection.cs
- DesignTimeData.cs
- Function.cs
- Method.cs
- WebBrowsableAttribute.cs
- TextBox.cs
- Image.cs
- ClientBase.cs
- WeakKeyDictionary.cs
- TaskFileService.cs
- XmlEncodedRawTextWriter.cs
- WebPartsPersonalization.cs
- ErrorFormatter.cs
- GeneralTransform3DTo2DTo3D.cs
- CheckPair.cs
- XmlElement.cs
- WindowsGraphicsWrapper.cs
- DataGridViewColumnCollection.cs
- CngKeyBlobFormat.cs
- PkcsMisc.cs
- ParagraphVisual.cs
- XPathParser.cs
- SqlSupersetValidator.cs
- Normalizer.cs
- ExecutionEngineException.cs
- RegisteredScript.cs
- FileUpload.cs
- HtmlInputButton.cs
- ClientCredentials.cs
- RbTree.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- MouseWheelEventArgs.cs
- TextEvent.cs
- Evaluator.cs
- ListComponentEditorPage.cs
- Span.cs
- URL.cs
- ProtocolViolationException.cs
- WindowsComboBox.cs
- StringFormat.cs
- RuntimeIdentifierPropertyAttribute.cs
- DataServiceQueryOfT.cs
- KeyTimeConverter.cs
- CodeTypeMember.cs