Skip to content

Avalonia 12 support#423

Open
mfkl wants to merge 3 commits intovideolan:3.xfrom
mfkl:avalonia-12
Open

Avalonia 12 support#423
mfkl wants to merge 3 commits intovideolan:3.xfrom
mfkl:avalonia-12

Conversation

@mfkl
Copy link
Copy Markdown
Member

@mfkl mfkl commented Apr 10, 2026

No description provided.

mfkl added 3 commits April 10, 2026 17:07
The Avalonia.ReactiveUI package has been deprecated. Replace
ReactiveObject with a plain INotifyPropertyChanged base class,
remove UseReactiveUI/UseSkia from Program.cs, and align Avalonia
package versions.
Use runtime version detection and reflection to handle breaking API
changes between Avalonia 11 and 12:

- SystemDecorations renamed to WindowDecorations
- Visual.VisualRoot replaced by GetPresentationSource().RootVisual
- Nullable sender signatures on event handlers

The library is compiled against Avalonia 11.3.13 as the lower bound
and adapts at runtime when Avalonia 12+ is present.
Add x:DataType directive to VideoPlayer.axaml for compiled bindings,
which are required by Avalonia 12. Bump sample Avalonia packages to
12.0.0.
@RobG66
Copy link
Copy Markdown

RobG66 commented Apr 14, 2026

Tested this on windows ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants