MainWindow.xaml.cs 638 B

12345678910111213141516171819202122232425
  1. // Copyright (c) The Avalonia Project. All rights reserved.
  2. // Licensed under the MIT license. See licence.md file in the project root for full license information.
  3. using Avalonia;
  4. using Avalonia.Controls;
  5. using Avalonia.Markup.Xaml;
  6. using VirtualizationTest.ViewModels;
  7. namespace VirtualizationTest
  8. {
  9. public class MainWindow : Window
  10. {
  11. public MainWindow()
  12. {
  13. this.InitializeComponent();
  14. this.AttachDevTools();
  15. DataContext = new MainWindowViewModel();
  16. }
  17. private void InitializeComponent()
  18. {
  19. AvaloniaXamlLoader.Load(this);
  20. }
  21. }
  22. }