How to load a GTK Sharp theme on MS Windows

这一生的挚爱 提交于 2019-12-04 13:51:04
castarco

Well, I've found the answer to my question :D .

I didn't try to load a specific GTK theme, but solved it to make .Net working properly without having to copy all the DLL files in the program directory.

I've found this thread in the Xamarin development forums:

In this thread Xamarin developers explain how they solve the dependencies loading problem. The key is to call the CheckWindowsGTK method before the Application.Init() call. The CheckWindowsGTK is defined in this file from the Monodevelop sources:

HINT: It's important to call CheckWindowsGTK only if the program is running on Windows.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!