Skip to content

Avalonia VideoView opens video in new window in ItemsControl with custom DataTemplate

I have an ItemsControl with custom DataTemplate in which I have a VideoView. All works great until the moment, when Video should be displayed. For some reason it is displayed in a new window like here I don't clearly understand why does it happen because all seems to be correct. I created a small sample for easier investigation. But I am sorry in advance if this problem is on my or Avalonia's side.

Minimal project and steps to reproduce

  1. Run App
  2. Press Play button

What is the current bug behavior?

Video opens in new window

What is the expected correct behavior?

Video should open in the old one

Environment

  • OS: Windows 10
  • LibVLC version and architecture 3.0.14
  • LibVLCSharp version 3.5.1
Edited by Martin Finkel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information