You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Windows App SDK:
On .Net 7.0, everything works well. However, this exception will always throw on .Net 8.0 if using the AcrylicBrush
Exception: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
StackTrace:
at System.RuntimeType.CreateInstanceOfT()
at System.Activator.CreateInstance[T]()
at WinRT.WeakLazy`1.get_Value()
at WinRT.ActivationFactory`1.ActivateInstance[I]()
at Microsoft.Graphics.Canvas.Effects.GaussianBlurEffect..ctor()
at CommunityToolkit.WinUI.UI.Media.Pipelines.PipelineBuilder.<>c__DisplayClass13_0.<<Blur>g__Factory|0>d.MoveNext()
--- End of stack trace from previous location ---
at CommunityToolkit.WinUI.UI.Media.Pipelines.PipelineBuilder.BuildAsync()
at CommunityToolkit.WinUI.UI.Media.XamlCompositionEffectBrushBase.OnConnected()
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Describe the bug
Windows App SDK:
On .Net 7.0, everything works well. However, this exception will always throw on .Net 8.0 if using the AcrylicBrush
Regression
No response
Reproducible in sample app?
Steps to reproduce
Expected behavior
Works just like on .Net 7.0
Screenshots
No response
Windows Build Number
Other Windows Build number
Windows 11 22621
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
17.8.4
Device form factor
Desktop
Nuget packages
CommunityToolkit.WinUI.UI.Media 7.1.2
Additional context
No response
Help us help you
No.