- Add reference to
MonoGame.Avalonia
project - Add
Game
Property to ViewModel with new instance of game to run - Add
MonoGameControl
to view
<monoGame:MonoGameControl
Game="{Binding Game}"
BackBufferWidth="1920"
BackBufferHeight="1080"
IsPaused="False"/>
See Examples in MonoGame.Avalonia.Example.Desktop
and MonoGame.Avalonia.Example.Desktop.Desktop
projects
- NeonShooter is licensed under the Microsoft Public License (Ms-PL). You can find the license text for this in the /source/NeonShooter/LICENSE.TXT file.
- MonoGame.Avalonia is licensed under the MIT license. You can find the license text in the LICENSE.