[CONNECT Update 15 C#] Refreshing UI after opening new file

Hello

I made addin application in c#. I created a window in MVVM pattern so ui is made in XAML file and then attached to DockableToolbar as it was in example:

 public class DockToolbar : DockableToolbar, BMG.IGuiDockable
    {
        static private DockToolbar instance;
        private MainWindow mainWindow;

        public DockToolbar()
        {
            this.mainWindow = new MainWindow();
            this.mainWindow.VerticalContentAlignment = SW.VerticalAlignment.Center;
            this.Content = this.mainWindow;

            this.Title = "MyApp";
            this.AttachingToHost += new BMG.AttachingToHostEventHandler(MyApp_AttachingToHost);
            this.DetachingFromHost += new EventHandler(MyApp_DetachingFromHost);

            this.Attach(MyApp.Instance, "MyApp");

            // Setup AutoOpen after calling Attach()
            this.AutoOpen = true;
            this.AutoOpenKeyin = "mdl silentload MyApp,,DEFAULTDOMAIN;MyApp open";
        }

Everything is working fine but UI is blank after opening new file

After opening new file :

How can I fix that codebehind? For now i just minimize and maximize Microstation window to refresh that.

I tried  UpdateLayout on MsterFileStart event but it doesn't work.