Avalonia based Editor for Romhackers

MainWindow.xaml.cs 513B

123456789101112131415161718192021222324
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Markup.Xaml;
  4. namespace Editopia.Editor
  5. {
  6. public class MainWindow : Window
  7. {
  8. public MainWindow()
  9. {
  10. InitializeComponent();
  11. #if DEBUG
  12. this.AttachDevTools();
  13. #endif
  14. }
  15. private void InitializeComponent()
  16. {
  17. var theme = new Avalonia.Themes.Default.DefaultTheme();
  18. theme.TryGetResource("Button", out _);
  19. AvaloniaXamlLoader.Load(this);
  20. }
  21. }
  22. }