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
Run the application.
It crashes at startup because the StateTrigger instance is null in
privatestaticclassXamlBindingSetters{publicstaticvoidSet_Microsoft_UI_Xaml_StateTrigger_IsActive(global::Microsoft.UI.Xaml.StateTriggerobj,global::System.Booleanvalue){obj.IsActive=value;// <-- obj is null}};
Expected behavior
The generated code should work as in UWP apps where this was working without any issue.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.1: 1.5.240311000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
The application crash when using
x:Bind
to set theStateTrigger.IsActive
property.Steps to reproduce the bug
Add the following XAML code in the
MainWindow
XAML of a blank WinAppSDK C# app:Run the application.
It crashes at startup because the
StateTrigger
instance isnull
inExpected behavior
The generated code should work as in UWP apps where this was working without any issue.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5.1: 1.5.240311000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: