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
- MultiPropertyDescriptorGridEntry.cs
- SafeUserTokenHandle.cs
- LinearKeyFrames.cs
- EncoderReplacementFallback.cs
- BuilderInfo.cs
- OperationBehaviorAttribute.cs
- WindowsAuthenticationModule.cs
- SoapServerMessage.cs
- HtmlGenericControl.cs
- HierarchicalDataBoundControl.cs
- DefaultHttpHandler.cs
- HttpListenerResponse.cs
- SafeCryptContextHandle.cs
- HttpCapabilitiesSectionHandler.cs
- InvalidStoreProtectionKeyException.cs
- CreateInstanceBinder.cs
- MethodBuilderInstantiation.cs
- FrameworkElementFactoryMarkupObject.cs
- ToolStripPanel.cs
- SetIndexBinder.cs
- SoapSchemaExporter.cs
- Tile.cs
- SafeNativeMethods.cs
- DataPagerFieldItem.cs
- ADRoleFactoryConfiguration.cs
- XmlJsonWriter.cs
- coordinator.cs
- AliasedSlot.cs
- bidPrivateBase.cs
- DispatcherOperation.cs
- Win32Native.cs
- WriteableBitmap.cs
- Error.cs
- HttpHandlersSection.cs
- TreeViewImageGenerator.cs
- SingleConverter.cs
- SelectionWordBreaker.cs
- SafeWaitHandle.cs
- HttpProcessUtility.cs
- HwndSourceParameters.cs
- NeutralResourcesLanguageAttribute.cs
- TypeUtil.cs
- ConsoleCancelEventArgs.cs
- PropertyKey.cs
- XsltCompileContext.cs
- CodeStatement.cs
- CorrelationResolver.cs
- CancellationTokenSource.cs
- Util.cs
- ConsoleKeyInfo.cs
- PropertyTabAttribute.cs
- XmlCharCheckingWriter.cs
- FilteredXmlReader.cs
- UndoManager.cs
- SystemIPGlobalProperties.cs
- Utils.cs
- ResXFileRef.cs
- XmlSignificantWhitespace.cs
- PathStreamGeometryContext.cs
- RuntimeArgumentHandle.cs
- SrgsOneOf.cs
- ParameterToken.cs
- ShaperBuffers.cs
- CredentialManagerDialog.cs
- validation.cs
- TextEndOfParagraph.cs
- ColumnWidthChangingEvent.cs
- ThreadStateException.cs
- RegexStringValidatorAttribute.cs
- WindowsTitleBar.cs
- SqlXml.cs
- AppModelKnownContentFactory.cs
- UIElement3D.cs
- OdbcEnvironmentHandle.cs
- ConnectionPointGlyph.cs
- COM2ExtendedTypeConverter.cs
- ColorBlend.cs
- SqlDelegatedTransaction.cs
- DetailsViewUpdateEventArgs.cs
- ExpressionWriter.cs
- HttpRawResponse.cs
- MsmqTransportSecurity.cs
- NotImplementedException.cs
- SqlMethodAttribute.cs
- PermissionListSet.cs
- CellQuery.cs
- CalendarDesigner.cs
- PropertyValueChangedEvent.cs
- SystemNetworkInterface.cs
- PolyLineSegment.cs
- Ray3DHitTestResult.cs
- SqlMultiplexer.cs
- WorkflowViewManager.cs
- WebPermission.cs
- IIS7WorkerRequest.cs
- XmlILTrace.cs
- RawStylusInputCustomDataList.cs
- DataGridViewTextBoxCell.cs
- ProfessionalColors.cs
- Trace.cs