My application puts up a login dialog before showing the main window. If the login information is not correct, it calls .Close() on the main window to shut down the application. Everything works except the RibbonView.
If I call Close() during the main window Loaded event, the RibbonView throws a null handle exception. I tried making the window start out invisible, and then showing it in the MainWindow ContentRendered event, but then the window (including the RibbonView) shuts down correctly, but with good login, the RibbonView does not show until the window is restored from maximized to be not full screen.
Be advised that the null handle exception does NOT happen when running in Visual Studio, only when running the built application. Is this a known bug, and is there a workaround? Thanks.
If I call Close() during the main window Loaded event, the RibbonView throws a null handle exception. I tried making the window start out invisible, and then showing it in the MainWindow ContentRendered event, but then the window (including the RibbonView) shuts down correctly, but with good login, the RibbonView does not show until the window is restored from maximized to be not full screen.
Be advised that the null handle exception does NOT happen when running in Visual Studio, only when running the built application. Is this a known bug, and is there a workaround? Thanks.