MonoGameGumFormsSample
Introduction
The MonoGameGumFormsSample includes a number of pages showing different features related to using Gum Forms.
Direct link: https://github.com/vchelaru/Gum/tree/master/Samples/GumFormsSample

The screens can be switched by modifying the screenNumber
variable in the Initialize code:
protected override void Initialize()
{
SystemManagers.Default = new SystemManagers();
SystemManagers.Default.Initialize(_graphics.GraphicsDevice, fullInstantiation: true);
FormsUtilities.InitializeDefaults();
const int screenNumber = 0;
switch (screenNumber)
{
case 0:
InitializeFromFileDemoScreen();
break;
case 1:
InitializeFrameworkElementExampleScreen();
break;
case 2:
InitializeFormsCustomizationScreen();
break;
}
base.Initialize();
}
ComplexListBoxItemScreen
The ComplexListBoxItemScreen shows how to create a ListBoxItem which is fully customizable. This page uses a ListBoxItem which has the following characteristics:
The layout is defined in the Gum tool rather than in code
Each item displays multiple pieces of information with multiple Text instances rather than a single Text instance
Each item displays information from a complex view model with multiple properties

Last updated
Was this helpful?