Class VideoView
- Namespace
- VisioForge.Core.UI.Uno
- Assembly
- VisioForge.Core.UI.Uno.dll
VideoView wrapper that exposes a native handle for Uno Platform targets.
public sealed class VideoView : Grid, IAnimationObject, IVisualElement, IVisualElement2, IDependencyObjectStoreProvider, IWeakReferenceProvider, IEnumerable, IDataContextProvider, DependencyObject, ILayoutConstraints, IVideoView, IDisposable, INotifyPropertyChangedInheritance
-
UIElementFrameworkElementPanelGrid
Implements
-
IAnimationObjectIVisualElementIVisualElement2IDependencyObjectStoreProviderIWeakReferenceProviderIDataContextProviderDependencyObjectILayoutConstraintsIVideoView
Inherited Members
-
Grid.GetRow(UIElement)Grid.SetRow(UIElement, int)Grid.GetColumn(UIElement)Grid.SetColumn(UIElement, int)Grid.GetRowSpan(UIElement)Grid.SetRowSpan(UIElement, int)Grid.GetColumnSpan(UIElement)Grid.SetColumnSpan(UIElement, int)Grid.RowDefinitionsGrid.ColumnDefinitionsGrid.BackgroundSizingPropertyGrid.BackgroundSizingGrid.BorderBrushGrid.BorderBrushPropertyGrid.BorderThicknessGrid.BorderThicknessPropertyGrid.PaddingGrid.PaddingPropertyGrid.CornerRadiusGrid.CornerRadiusPropertyGrid.RowPropertyGrid.ColumnPropertyGrid.RowSpanPropertyGrid.ColumnSpanPropertyGrid.RowSpacingGrid.RowSpacingPropertyGrid.ColumnSpacingGrid.ColumnSpacingPropertyPanel.Add(UIElement)Panel.BackgroundTransitionPanel.ChildrenPanel.ChildrenTransitionsPanel.ChildrenTransitionsPropertyPanel.IsItemsHostPropertyPanel.IsItemsHostFrameworkElement.DeferTree(DependencyObject)FrameworkElement.ToString()FrameworkElement.GetAccessibilityInnerText()FrameworkElement.GetAutomationPeer()FrameworkElement.FindFirstParent<T>()FrameworkElement.FindFirstParent<T>(bool)FrameworkElement.Dispose()FrameworkElement.AdjustArrange(Size)FrameworkElement.FindName(string)FrameworkElement.ApplyBindingPhase(int)FrameworkElement.GetEnumerator()FrameworkElement.LanguageFrameworkElement.TriggersFrameworkElement.ActualHeightPropertyFrameworkElement.ActualThemePropertyFrameworkElement.ActualWidthPropertyFrameworkElement.LanguagePropertyFrameworkElement.NamePropertyFrameworkElement.ActualWidthFrameworkElement.ActualHeightFrameworkElement.HorizontalAlignmentPropertyFrameworkElement.HorizontalAlignmentFrameworkElement.VerticalAlignmentPropertyFrameworkElement.VerticalAlignmentFrameworkElement.WidthPropertyFrameworkElement.WidthFrameworkElement.HeightPropertyFrameworkElement.HeightFrameworkElement.MinWidthPropertyFrameworkElement.MinWidthFrameworkElement.MinHeightPropertyFrameworkElement.MinHeightFrameworkElement.MaxWidthPropertyFrameworkElement.MaxWidthFrameworkElement.MaxHeightPropertyFrameworkElement.MaxHeightFrameworkElement.MarginPropertyFrameworkElement.MarginFrameworkElement.IsLoadedFrameworkElement.UseConstraintOptimizationsFrameworkElement.AreDimensionsConstrainedFrameworkElement.TagFrameworkElement.TagPropertyFrameworkElement.FlowDirectionFrameworkElement.FlowDirectionPropertyFrameworkElement.ResourcesFrameworkElement.ParentFrameworkElement.BaseUriFrameworkElement.StyleFrameworkElement.StylePropertyFrameworkElement.RequestedThemeFrameworkElement.RequestedThemePropertyFrameworkElement.ActualThemeFrameworkElement.FocusVisualSecondaryThicknessPropertyFrameworkElement.FocusVisualSecondaryThicknessFrameworkElement.FocusVisualSecondaryBrushPropertyFrameworkElement.FocusVisualSecondaryBrushFrameworkElement.FocusVisualPrimaryThicknessPropertyFrameworkElement.FocusVisualPrimaryThicknessFrameworkElement.FocusVisualPrimaryBrushFrameworkElement.FocusVisualPrimaryBrushPropertyFrameworkElement.FocusVisualMarginFrameworkElement.FocusVisualMarginPropertyFrameworkElement.AllowFocusWhenDisabledFrameworkElement.AllowFocusWhenDisabledPropertyFrameworkElement.AllowFocusOnInteractionFrameworkElement.AllowFocusOnInteractionPropertyFrameworkElement.TransitionsPropertyFrameworkElement.TransitionsFrameworkElement.BackgroundFrameworkElement.BackgroundPropertyFrameworkElement.RenderPhaseFrameworkElement.NameFrameworkElement.SizeChangedFrameworkElement.ActualThemeChangedFrameworkElement.LayoutUpdatedFrameworkElement.EffectiveViewportChangedFrameworkElement.LoadingFrameworkElement.LoadedFrameworkElement.UnloadedUIElement.Measure(Size)UIElement.Arrange(Rect)UIElement.InvalidateMeasure()UIElement.InvalidateArrange()UIElement.StartAnimation(ICompositionAnimationBase)UIElement.StopAnimation(ICompositionAnimationBase)UIElement.PopulatePropertyInfo(string, AnimationPropertyInfo)UIElement.GetVisualInternal()UIElement.TryStartDirectManipulation(Pointer)UIElement.StartBringIntoView()UIElement.StartBringIntoView(BringIntoViewOptions)UIElement.RegisterAsScrollPort(UIElement)UIElement.Focus(FocusState)UIElement.TransformToVisual(UIElement)UIElement.UpdateLayout()UIElement.TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)UIElement.CancelDirectManipulations()UIElement.StartDragAsync(PointerPoint)UIElement.CapturePointer(Pointer)UIElement.ReleasePointerCapture(Pointer)UIElement.ReleasePointerCaptures()UIElement.AddHandler(RoutedEvent, object, bool)UIElement.RemoveHandler(RoutedEvent, object)UIElement.GetValue(DependencyProperty)UIElement.SetValue(DependencyProperty, object)UIElement.ClearValue(DependencyProperty)UIElement.ReadLocalValue(DependencyProperty)UIElement.GetAnimationBaseValue(DependencyProperty)UIElement.RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)UIElement.UnregisterPropertyChangedCallback(DependencyProperty, long)UIElement.ToString()UIElement.SetBinding(object, string, BindingBase)UIElement.SetBinding(string, BindingBase)UIElement.SetBinding(DependencyProperty, BindingBase)UIElement.SetBindingValue(object, string)UIElement.GetBindingExpression(DependencyProperty)UIElement.ResumeBindings()UIElement.SuspendBindings()UIElement.RotationTransitionUIElement.KeyTipTargetUIElement.KeyTipPlacementModeUIElement.KeyTipHorizontalOffsetUIElement.IsTapEnabledUIElement.IsRightTapEnabledUIElement.IsHoldingEnabledUIElement.IsDoubleTapEnabledUIElement.AccessKeyUIElement.HighContrastAdjustmentUIElement.ExitDisplayModeOnAccessKeyInvokedUIElement.OpacityTransitionUIElement.CompositeModeUIElement.CanBeScrollAnchorUIElement.CacheModeUIElement.AccessKeyScopeOwnerUIElement.IsAccessKeyScopeUIElement.KeyTipVerticalOffsetUIElement.CenterPointUIElement.UseLayoutRoundingUIElement.TranslationTransitionUIElement.TransformMatrixUIElement.RotationUIElement.RasterizationScaleUIElement.ProjectionUIElement.ScaleTransitionUIElement.ScaleUIElement.RotationAxisUIElement.Transform3DUIElement.LightsUIElement.AccessKeyPropertyUIElement.AccessKeyScopeOwnerPropertyUIElement.CacheModePropertyUIElement.CanBeScrollAnchorPropertyUIElement.CharacterReceivedEventUIElement.CompositeModePropertyUIElement.ContextRequestedEventUIElement.ExitDisplayModeOnAccessKeyInvokedPropertyUIElement.HighContrastAdjustmentPropertyUIElement.IsAccessKeyScopePropertyUIElement.IsDoubleTapEnabledPropertyUIElement.IsHoldingEnabledPropertyUIElement.IsRightTapEnabledPropertyUIElement.IsTapEnabledPropertyUIElement.KeyTipHorizontalOffsetPropertyUIElement.KeyTipPlacementModePropertyUIElement.KeyTipTargetPropertyUIElement.KeyTipVerticalOffsetPropertyUIElement.LightsPropertyUIElement.PreviewKeyDownEventUIElement.PreviewKeyUpEventUIElement.ProjectionPropertyUIElement.Transform3DPropertyUIElement.UseLayoutRoundingPropertyUIElement.DesiredSizeUIElement.ActualSizeUIElement.ActualOffsetUIElement.TranslationUIElement.ShadowUIElement.ShadowPropertyUIElement.ClipUIElement.ClipPropertyUIElement.RenderTransformUIElement.RenderTransformPropertyUIElement.RenderTransformOriginUIElement.RenderTransformOriginPropertyUIElement.RenderSizeUIElement.XYFocusKeyboardNavigationUIElement.XYFocusKeyboardNavigationPropertyUIElement.XYFocusDownNavigationStrategyUIElement.XYFocusDownNavigationStrategyPropertyUIElement.XYFocusLeftNavigationStrategyUIElement.XYFocusLeftNavigationStrategyPropertyUIElement.XYFocusRightNavigationStrategyUIElement.XYFocusRightNavigationStrategyPropertyUIElement.XYFocusUpNavigationStrategyUIElement.XYFocusUpNavigationStrategyPropertyUIElement.TabFocusNavigationUIElement.TabFocusNavigationPropertyUIElement.FocusStateUIElement.FocusStatePropertyUIElement.IsTabStopUIElement.IsTabStopPropertyUIElement.TabIndexUIElement.TabIndexPropertyUIElement.XYFocusUpUIElement.XYFocusUpPropertyUIElement.XYFocusDownUIElement.XYFocusDownPropertyUIElement.XYFocusLeftUIElement.XYFocusLeftPropertyUIElement.XYFocusRightUIElement.XYFocusRightPropertyUIElement.UseSystemFocusVisualsUIElement.UseSystemFocusVisualsPropertyUIElement.ManipulationModePropertyUIElement.ManipulationModeUIElement.CanDragPropertyUIElement.CanDragUIElement.AllowDropPropertyUIElement.AllowDropUIElement.PointerCapturesPropertyUIElement.PointerCapturesUIElement.IsHitTestVisiblePropertyUIElement.IsHitTestVisibleUIElement.OpacityPropertyUIElement.OpacityUIElement.VisibilityPropertyUIElement.VisibilityUIElement.ContextFlyoutPropertyUIElement.ContextFlyoutUIElement.KeyboardAcceleratorsUIElement.KeyboardAcceleratorPlacementModeUIElement.KeyboardAcceleratorPlacementModePropertyUIElement.KeyboardAcceleratorPlacementTargetUIElement.KeyboardAcceleratorPlacementTargetPropertyUIElement.HandleUIElement.PointerPressedEventUIElement.PointerReleasedEventUIElement.PointerEnteredEventUIElement.PointerExitedEventUIElement.PointerMovedEventUIElement.PointerCanceledEventUIElement.PointerCaptureLostEventUIElement.PointerWheelChangedEventUIElement.ManipulationStartingEventUIElement.ManipulationStartedEventUIElement.ManipulationDeltaEventUIElement.ManipulationInertiaStartingEventUIElement.ManipulationCompletedEventUIElement.TappedEventUIElement.DoubleTappedEventUIElement.RightTappedEventUIElement.HoldingEventUIElement.DragEnterEventUIElement.DragOverEventUIElement.DragLeaveEventUIElement.DropEventUIElement.KeyDownEventUIElement.KeyUpEventUIElement.GettingFocusEventUIElement.LosingFocusEventUIElement.NoFocusCandidateFoundEventUIElement.BringIntoViewRequestedEventUIElement.EventsBubblingInManagedCodePropertyUIElement.EventsBubblingInManagedCodeUIElement.XamlRootUIElement.DispatcherUIElement.DispatcherQueueUIElement.IsStoreInitializedUIElement.DataContextUIElement.DataContextPropertyUIElement.AccessKeyDisplayDismissedUIElement.AccessKeyDisplayRequestedUIElement.CharacterReceivedUIElement.ContextCanceledUIElement.ContextRequestedUIElement.PreviewKeyDownUIElement.PreviewKeyUpUIElement.AccessKeyInvokedUIElement.ProcessKeyboardAcceleratorsUIElement.LostFocusUIElement.GotFocusUIElement.LosingFocusUIElement.GettingFocusUIElement.NoFocusCandidateFoundUIElement.BringIntoViewRequestedUIElement.PointerCanceledUIElement.PointerCaptureLostUIElement.PointerEnteredUIElement.PointerExitedUIElement.PointerMovedUIElement.PointerPressedUIElement.PointerReleasedUIElement.PointerWheelChangedUIElement.ManipulationStartingUIElement.ManipulationStartedUIElement.ManipulationDeltaUIElement.ManipulationInertiaStartingUIElement.ManipulationCompletedUIElement.TappedUIElement.DoubleTappedUIElement.RightTappedUIElement.HoldingUIElement.DragStartingUIElement.DragEnterUIElement.DragLeaveUIElement.DragOverUIElement.DropUIElement.DropCompletedUIElement.KeyDownUIElement.KeyUpUIElement.DataContextChanged
Constructors
VideoView()
Initializes a new instance of the VisioForge.Core.UI.Uno.VideoView class.
public VideoView()Methods
CallInvoke(Delegate, params object[])
Executes a delegate on the UI thread of the control.
public void CallInvoke(Delegate method, params object[] args)Parameters
CallRefresh()
Forces the view to redraw or refresh its content.
public void CallRefresh()ClearUI()
Clears the user interface, removing any overlays or graphics.
public void ClearUI()Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()~VideoView()
Finalizer.
protected ~VideoView()GetBackgroundColor()
Gets the background color of the video view.
public SKColor GetBackgroundColor()Returns
- SKColor
-
The background color as an SkiaSharp.SKColor.
GetHandle()
Gets the native window handle of the underlying UI control.
public nint GetHandle()Returns
GetInvokeRequired()
Gets a value indicating whether the caller must use an invoke method when making calls to the control.
public bool GetInvokeRequired()Returns
- bool
-
trueif the call must be invoked; otherwise,false.
GetIsHandleCreated()
Gets a value indicating whether the underlying UI control's handle has been created.
public bool GetIsHandleCreated()Returns
- bool
-
trueif the handle is created; otherwise,false.
GetSize()
Gets the current size of the video view.
public Size GetSize()Returns
- Size
-
The size as a VisioForge.Core.Types.Size structure.
GetUIEngine()
Gets the underlying UI engine being used by the view.
public VideoViewUIEngine GetUIEngine()Returns
- VideoViewUIEngine
-
The VisioForge.Core.Types.VideoViewUIEngine used for rendering.
InvokeStart()
Signals the view that the engine has started.
public void InvokeStart()InvokeStartComplete()
Signals the view that the engine has completed its start sequence.
public void InvokeStartComplete()InvokeStop()
Signals the view that the engine has stopped.
public void InvokeStop()InvokeVideoRendererUpdate()
Triggers an update of the video renderer.
public void InvokeVideoRendererUpdate()LogDialogClear()
Clears all messages from the log dialog.
public void LogDialogClear()LogDialogClose()
Closes the log dialog if it is open.
public void LogDialogClose()LogDialogError(string)
Displays an error message in a dialog box.
public void LogDialogError(string msg)Parameters
msgstring-
The error message to display.
PushMouseButtonDown(int, int, MouseButton)
Pushes a mouse button down event to the control.
public void PushMouseButtonDown(int x, int y, MouseButton button)Parameters
xint-
The x-coordinate of the mouse.
yint-
The y-coordinate of the mouse.
buttonMouseButton-
The mouse button that was pressed.
PushMouseButtonUp(int, int, MouseButton)
Pushes a mouse button up event to the control.
public void PushMouseButtonUp(int x, int y, MouseButton button)Parameters
xint-
The x-coordinate of the mouse.
yint-
The y-coordinate of the mouse.
buttonMouseButton-
The mouse button that was released.
PushMouseMove(int, int)
Pushes a mouse move event to the control for processing.
public void PushMouseMove(int x, int y)Parameters
ResizeRoundTo(int)
Resizes the video view, rounding the dimensions to a specified value.
public void ResizeRoundTo(int round)Parameters
roundint-
The value to round the dimensions to (e.g., 16).
SetHandle(nint)
Sets the native window handle. Used for embedding the video in a specific control.
public void SetHandle(nint handle)Parameters
handlenint-
The window handle.
ShowMessage(string)
Shows a message box to the user.
public MessageBoxResult ShowMessage(string message)Parameters
messagestring-
The message to display.
Returns
- MessageBoxResult
-
A VisioForge.Core.Types.MessageBoxResult indicating which button the user clicked.
ShowMessageEx(string, string, MessageBoxDialogButtons)
Displays a message box with custom caption and buttons.
public MessageBoxResult ShowMessageEx(string message, string caption, MessageBoxDialogButtons buttons)Parameters
Returns
- MessageBoxResult
OnMouseButtonDown
Occurs when a mouse button is pressed down over the control.
public event EventHandler<MouseButtonEventArgs> OnMouseButtonDownEvent Type
- EventHandler<MouseButtonEventArgs>
OnMouseButtonUp
Occurs when a mouse button is released over the control.
public event EventHandler<MouseButtonEventArgs> OnMouseButtonUpEvent Type
- EventHandler<MouseButtonEventArgs>
OnMouseMoved
Occurs when the mouse pointer is moved over the control.
public event EventHandler<MouseMoveEventArgs> OnMouseMovedEvent Type
- EventHandler<MouseMoveEventArgs>
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged