When clicking on "New Window" button, the new window never shows up. However, YorotGlobal.Main.MainForms does indicate that it is created.
Creating a new window in Avalonia is easy and the current implementation should work. However, Yorot does not uses the Avalonia's lifetime but CefNet's custom LifeTime when launching the program. So it's in the suspect list. Gonna try with both default and CefNet lifetime.
Found the problem, setting IsVisible and IsEnabled before showing it caused Avalonia to nah this thing is already visible no need to re-show it twice and not do anything. Fixed.
When clicking on "New Window" button, the new window never shows up. However,
YorotGlobal.Main.MainForms
does indicate that it is created.Creating a new window in Avalonia is easy and the current implementation should work. However, Yorot does not uses the Avalonia's lifetime but CefNet's custom LifeTime when launching the program. So it's in the suspect list. Gonna try with both default and CefNet lifetime.Found the problem, setting
IsVisible
andIsEnabled
before showing it caused Avalonia tonah this thing is already visible no need to re-show it twice
and not do anything. Fixed.