Crash on having collection of enums
Posted: 06 Aug 2025, 22:49
It seems having this would crash my studio on restart. I can create it and work with it while in the app but next time it crashes
the problem is with
Code: Select all
<Class Name="DashboardViewModel">
<Property Name="UIProfiles" Type="Collection" SubType="Gui.ProfilesViewModel" CollectionMinItemCount="0" CollectionMaxItemCount="10"/>
<Property Name="ShouldShowProfileSelection" Type="Boolean"/>
<Property Name="Step2_EnteredName" Type="String" StringMinWordCount="0" StringMaxWordCount="10"/>
<Property Name="Step2_EnteredAge" Type="Enum" SubType="Gui.KidsAgeRange"/>
<Property Name="Step2_ListOfAge" Type="Collection" SubType="Gui.KidsAgeRange" CollectionMinItemCount="0" CollectionMaxItemCount="10"/>
<Property Name="Selected_UIProfile" Type="Object" SubType="Gui.ProfilesViewModel"/>
<Property Name="Step2_SelectedImage" Type="Object" SubType="ImageSource" ImageSourcePath=""/>
</Class>
Code: Select all
<Property Name="Step2_ListOfAge" Type="Collection" SubType="Gui.KidsAgeRange" CollectionMinItemCount="0" CollectionMaxItemCount="10"/>
Code: Select all
<Enum Name="KidsAgeRange">
<Item Name="Preschool" Value="0"/>
<Item Name="Kindergarten" Value="1"/>
<Item Name="grade1" Value="2"/>
<Item Name="grade2" Value="3"/>
<Item Name="grade3" Value="4"/>
<Item Name="grade4" Value="5"/>
<Item Name="grade5" Value="6"/>
</Enum>