Today I started with my WPF training and one of the points that came up was that it requires to run with STAThread attribute. I read Why does WPF require a STAThread attribute to be applied to the Main method? question and I understood the difference between STA and MTA models. Our trainer mentioned that because WPF uses DirectX that is why STA is required. However, he did not elaborate on that.
I am trying to get more information on this. But I still do not understand why is STA required and is there a dependency on DirectX because of which STA model is adapted? Or what kind of synchronizing issues occured in Windows UI development which lead to development of this model?
Please help me with this topic. Also, any links or articles which I can read further to understand this concept.
Thanks.