// Constructor public MainPage() { InitializeComponent(); Loaded += (sender, e) => { var statLightSystem = new NormalStatLightSystem(newRootVisual => this.Content = newRootVisual); }; }
private void Application_Startup(object sender, StartupEventArgs e) { var statLightSystem = new NormalStatLightSystem(newRootVisual => RootVisual = newRootVisual); }