-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Avalonia@54158b47 (Jul 12 2023)
- Loading branch information
Showing
6 changed files
with
84 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/Modern.WindowKit/Avalonia.Win32/WinUiCompositionShared.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using Modern.WindowKit.MicroCom; | ||
|
||
namespace Modern.WindowKit.Win32.WinRT.Composition; | ||
|
||
internal class WinUiCompositionShared : IDisposable | ||
{ | ||
//public ICompositor Compositor { get; } | ||
//public ICompositor5 Compositor5 { get; } | ||
//public ICompositorDesktopInterop DesktopInterop { get; } | ||
//public ICompositionBrush BlurBrush { get; } | ||
//public ICompositionBrush? MicaBrush { get; } | ||
//public object SyncRoot { get; } = new(); | ||
|
||
public static readonly Version MinWinCompositionVersion = new(10, 0, 17134); | ||
public static readonly Version MinAcrylicVersion = new(10, 0, 15063); | ||
public static readonly Version MinHostBackdropVersion = new(10, 0, 22000); | ||
|
||
//public WinUiCompositionShared(ICompositor compositor) | ||
//{ | ||
// Compositor = compositor.CloneReference(); | ||
// Compositor5 = compositor.QueryInterface<ICompositor5>(); | ||
// BlurBrush = WinUiCompositionUtils.CreateAcrylicBlurBackdropBrush(compositor); | ||
// MicaBrush = WinUiCompositionUtils.CreateMicaBackdropBrush(compositor); | ||
// DesktopInterop = compositor.QueryInterface<ICompositorDesktopInterop>(); | ||
//} | ||
|
||
public void Dispose() | ||
{ | ||
//BlurBrush.Dispose(); | ||
//MicaBrush?.Dispose(); | ||
//DesktopInterop.Dispose(); | ||
//Compositor.Dispose(); | ||
//Compositor5.Dispose(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters