Home › Forums › Software Development › Multiple WPF Windows: Should every window declare own Host? › Reply To: Multiple WPF Windows: Should every window declare own Host?
12/08/2019 at 14:27 #11867
Grant [Tobii]
Keymaster
Hi @eyetrackjack and thanks for your query. There is no need to declare for each WPF window instance as we recommend you use a single host + agent per application. Therefore make the declaration within the main method.
Declaring multiple instances may have unpredictable consequences so please refrain from doing so.
Please do let us know if you are having any issues in this regard or if we can provide further information.