Shell.xaml.cs 316 B

1234567891011121314151617181920212223
  1. using System.ComponentModel.Composition;
  2. using System.Windows;
  3. namespace Editor
  4. {
  5. [Export]
  6. public partial class Shell: Window
  7. {
  8. public Shell()
  9. {
  10. this.InitializeComponent();
  11. }
  12. [Import]
  13. private ShellViewModel ViewModel
  14. {
  15. set
  16. {
  17. this.DataContext = value;
  18. }
  19. }
  20. }
  21. }