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
- XslUrlEditor.cs
- XmlReaderDelegator.cs
- InlineCollection.cs
- Parser.cs
- SimpleTextLine.cs
- Maps.cs
- AmbiguousMatchException.cs
- NetworkInformationPermission.cs
- TextBoxAutomationPeer.cs
- FragmentNavigationEventArgs.cs
- MenuItem.cs
- QueryExecutionOption.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- MouseCaptureWithinProperty.cs
- HierarchicalDataSourceControl.cs
- DbFunctionCommandTree.cs
- WizardStepCollectionEditor.cs
- RuleConditionDialog.cs
- ConsumerConnectionPointCollection.cs
- TextElementCollectionHelper.cs
- SqlConnection.cs
- BufferModesCollection.cs
- DataServiceProviderMethods.cs
- ConfigurationStrings.cs
- ByteStorage.cs
- SiteMapDataSourceView.cs
- SelectorAutomationPeer.cs
- WindowsProgressbar.cs
- TTSEngineTypes.cs
- DynamicPropertyHolder.cs
- ArglessEventHandlerProxy.cs
- MetadataException.cs
- JoinElimination.cs
- PermissionSetEnumerator.cs
- ToolboxCategoryItems.cs
- Shape.cs
- ClientRolePrincipal.cs
- SoapConverter.cs
- AutomationAttributeInfo.cs
- ScriptResourceHandler.cs
- TextBox.cs
- Number.cs
- ItemDragEvent.cs
- NetMsmqSecurityMode.cs
- CustomCredentialPolicy.cs
- IResourceProvider.cs
- WindowsSpinner.cs
- HostingPreferredMapPath.cs
- DbSourceParameterCollection.cs
- PrinterUnitConvert.cs
- RegexTree.cs
- HttpProfileGroupBase.cs
- ScriptResourceAttribute.cs
- FieldBuilder.cs
- TextEditor.cs
- WindowsAltTab.cs
- ErrorWrapper.cs
- ProxyElement.cs
- InternalCache.cs
- RelatedCurrencyManager.cs
- MediaCommands.cs
- DropSource.cs
- ResolveMatchesApril2005.cs
- ObjectDesignerDataSourceView.cs
- TemplateBindingExtension.cs
- ToolboxItemCollection.cs
- RotationValidation.cs
- CFStream.cs
- QueryLifecycle.cs
- MetadataUtilsSmi.cs
- ITextView.cs
- HelloMessageCD1.cs
- ExceptionValidationRule.cs
- LayoutDump.cs
- StandardCommands.cs
- DataViewListener.cs
- SslStreamSecurityElement.cs
- ProtectedConfigurationProviderCollection.cs
- IndexingContentUnit.cs
- PinnedBufferMemoryStream.cs
- DesignerListAdapter.cs
- WindowsSysHeader.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- PrintPageEvent.cs
- InstanceDataCollectionCollection.cs
- EventHandlersStore.cs
- FormsAuthenticationTicket.cs
- NamespaceDisplayAutomationPeer.cs
- WindowsScroll.cs
- Stream.cs
- XPathBuilder.cs
- InternalMappingException.cs
- PhysicalOps.cs
- OleDbException.cs
- XmlSchemaAnnotated.cs
- InkCanvasSelection.cs
- DataGridRelationshipRow.cs
- mediapermission.cs
- HwndMouseInputProvider.cs
- SafeNativeMemoryHandle.cs