public PhotoContentEditorWindow(bool forAutomation)
        {
            InitializeComponent();

            StatusContext = new StatusControlContext();
            PhotoEditor   = new PhotoContentEditorContext(StatusContext, forAutomation);

            DataContext            = this;
            AccidentalCloserHelper = new WindowAccidentalClosureHelper(this, StatusContext, PhotoEditor);
        }
        public PhotoContentEditorWindow(PhotoContent toLoad)
        {
            InitializeComponent();

            StatusContext = new StatusControlContext();
            PhotoEditor   = new PhotoContentEditorContext(StatusContext, toLoad);

            DataContext            = this;
            AccidentalCloserHelper = new WindowAccidentalClosureHelper(this, StatusContext, PhotoEditor);
        }
        public PhotoContentEditorWindow(PhotoContent toLoad)
        {
            InitializeComponent();

            StatusContext = new StatusControlContext();

            StatusContext.RunFireAndForgetBlockingTaskWithUiMessageReturn(async() =>
            {
                PhotoEditor = await PhotoContentEditorContext.CreateInstance(StatusContext, toLoad);

                PhotoEditor.RequestContentEditorWindowClose += (sender, args) => { Dispatcher?.Invoke(Close); };
                AccidentalCloserHelper = new WindowAccidentalClosureHelper(this, StatusContext, PhotoEditor);

                await ThreadSwitcher.ResumeForegroundAsync();
                DataContext = this;
            });
        }