-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorneeds triage 🔍
Description
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
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()
Regression
No response
Reproducible in sample app?
- This bug can be reproduced in the sample app.
Steps to reproduce
<Rectangle>
<Rectangle.Fill>
<Media:AcrylicBrush TintColor="Black"
FallbackColor="Transparent"
BlurAmount="5"
TintOpacity="0.5" />
</Rectangle.Fill>
</Rectangle>
Expected behavior
Works just like on .Net 7.0
Screenshots
No response
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
Windows 11 22621
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Other (specify)
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.
Metadata
Metadata
Assignees
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviorneeds triage 🔍