Skip to content

Avalonia: Opacity of videoview not applied

Summary

Setting the opacity property of the videoview in an avaloniaui view has no effect. Also changing the opacity of the parent element or the window has no effect on the videoview itself. It seems that the videoview is rendered above the whole application itself.

Minimal project and steps to reproduce

  1. Clone the project
  2. Add Opacity to the VideoView (samples/LibVLCSharp.Avalonia.Sample/Views/MainWindow.xaml)

Relevant LibVLC logs and/or screenshots

The following screenshot demonstrates the issue. The main window that hosts the vlc videoview is transparent, but the videoview itself keeps being solid:

image

Environment

  • OS: Windows
  • Version 11
  • Device: Dell Vostro 7620
  • LibVLC version and architecture 3.0.21
  • LibVLCSharp version 3.9.2
  • Avalonia Desktop: 11.2.3
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information