I launch a dialog, select the theme, return from the dialog, switch the theme and then:
if i had hidden the dialog it works fine
if i had closed the dialog it crashed
Seems a hidden windows gets the resource updated i guess.
------------------------------------------------------
Cannot set Owner property to a Window that has been closed.
StackTrace:
at System.Windows.Window.set_Owner(Window value)
at ActiproSoftware.Windows.Themes.WindowChromeShadow.AttachToPrimaryWindow(Window newPrimaryWindow)
at ActiproSoftware.Windows.Themes.WindowChromeShadow..ctor(Window primaryWindow)
at ActiproSoftware.Windows.Themes.WindowChromeManager.#5Lg()
at ActiproSoftware.Windows.Themes.WindowChromeManager.#6Lg(Boolean #BCf)
at ActiproSoftware.Windows.Themes.WindowChromeManager.#9Ej()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[Modified 4 years ago]