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
however it throws NullReferenceException during InitializeComponents().
====== Investigation... ======
digging into generated code (MainPage.g.cs), it calls
public static void Set_WindowsStateTriggers_EqualsStateTrigger_Value(global::WindowsStateTriggers.EqualsStateTrigger obj, global::System.Object value, string targetNullValue)
{
if (value == null && targetNullValue != null)
{
value = (global::System.Object) global::Windows.UI.Xaml.Markup.XamlBindingHelper.ConvertValue(typeof(global::System.Object), targetNullValue);
}
obj.Value = value;
}
where obj == null...
I also dug into public void Connect(int connectionId, global::System.Object target) , seems it doesn't call Connect with the IDs for my EqualsStateTriggers:
case 9: // Pages\MainPage.xaml line 138
this.obj9 = (global::WindowsStateTriggers.EqualsStateTrigger)target;
break;
case 10: // Pages\MainPage.xaml line 126
this.obj10 = (global::WindowsStateTriggers.EqualsStateTrigger)target;
break;
I'm trying to set a
EqualsStateTrigger
in aVisualState.StateTriggers
with the following code:as taken from the example (https://github.com/dotMorten/WindowsStateTriggers/blob/master/src/TestApp/Samples/EqualsSample.xaml)
however it throws
NullReferenceException
duringInitializeComponents()
.====== Investigation... ======
digging into generated code (
MainPage.g.cs
), it callswhere
obj == null
...I also dug into
public void Connect(int connectionId, global::System.Object target)
, seems it doesn't callConnect
with the IDs for myEqualsStateTrigger
s:before calling
My stack:
I'm targeting
Windows 10, version 1903 (10.0 build 18362)
(both target and minimum).The text was updated successfully, but these errors were encountered: