How can I know in a Plugin if App is compiled for WinUI ?
Which I imagine will be pretty important to know down the road since the whole App’s look will change.
Thanks
How can I know in a Plugin if App is compiled for WinUI ?
Which I imagine will be pretty important to know down the road since the whole App’s look will change.
Thanks
Right now the only effective way is if you rebuild and add the specific plugin Build Resource (for WinUI x86, WinUI x86-64 and WinUI arm64), since we’ll choose those parts when you build for WinUI.
Ah yes……
Though I have not really tried it then I think thats all right solution.
There is no function to query this?
Nothing we can load and execute?
Or a property of app object to read?
It sounds a bit overkill to duplicate windows plugin size for this.
The assumption is that if you’re targeting WinUI, you’ll be building an additional set of DLLs to render WinUI controls. I’m not sure what other situation you’re considering where the app would need to determine whether it’s a WinUI app.
Would this be adding bloat to the built app?
The assumption is a bit bad since half of UI plugins don’t use Win32 to render. But the use actually Xojo drawing code.
Where I imagine to simulate something in WinUI theme wise it would want to alter its drawing but maybe not change a lot.
No, no bloat to the built app. Since Xojo chooses which plugin segment to put in your built app and only puts one there.
Well, one use could be to raise an exception if people use the control where it’s know to not work.
In case we have no WinUI segment.
Or to do something a bit different.
Fair points, we’ll see what we can do.