1
0

MainWindow.cs 650 B

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