public WindowModel(MainWindow window)
        {
            Window        = window;
            AssemblyPath  = System.Reflection.Assembly.GetExecutingAssembly().Location;
            ExecutionPath = System.IO.Path.GetDirectoryName(AssemblyPath);

            window.Loaded += WindowOnLoaded;

            windowStack.Push(window);

            var bgBrush  = (SolidColorBrush)Window.FindResource("BackgroundBrush");
            var tmpColor = new ImageFramework.Utility.Color(bgBrush.Color.ScR, bgBrush.Color.ScG, bgBrush.Color.ScB, 1.0f);

            ThemeColor = tmpColor.ToSrgb();
        }