You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a custom window with an Id so we can look up it.
Pseudocode:
new Avalonia.Window().Show()--> Application.Windows[1]
Application(Window())
Application(){
Window()
Window()--> Fabulous can not add to ReadOnlyList
}
Application(){// This is the main window
Window(...)// This is the second window
Window(id ="secondWindow", content =...)}typeFabWindow()=inherit Window()memberthis.WindowIdtype FabAvaloniaApp()=inherit Application()memberthis.InternalWindows=new List<Window>()<--- this one
overridethis.MainWindow= this.InternalWindows[0]memberthis.OpenWindow(id:string)=letwindow= this.InternalWindows |> List.find (fun w -> w.WindowId = id)
window.Show()
Button("Open second window", Clicked)match msg with| Clicked -> Application.Current.OpenWindow("secondWindow")
The text was updated successfully, but these errors were encountered:
Pseudocode:
The text was updated successfully, but these errors were encountered: