# How to know in a Plugin if App is compiled for WinUI

**URL:** <https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196>\
**Category:** SDKs\
**Created:** [December 10, 2025, 9:22am UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196 "2025-12-10T09:22:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Björn\_Eiríksson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Post date:** [December 10, 2025, 9:22am UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/1 "2025-12-10T09:22:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![William\_Yu](https://forum.xojo.com/user_avatar/forum.xojo.com/william_yu/32/610_2.png) [@William\_Yu](https://forum.xojo.com/u/William_Yu)\
**Post date:** [December 10, 2025, 10:41pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/2 "2025-12-10T22:41:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Björn\_Eiríksson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Post date:** [December 10, 2025, 11:09pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/3 "2025-12-10T23:09:38Z")

</div>

Ah yes……

Though I have not really tried it then I think thats all right solution.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [December 11, 2025, 9:19am UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/4 "2025-12-11T09:19:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![William\_Yu](https://forum.xojo.com/user_avatar/forum.xojo.com/william_yu/32/610_2.png) [@William\_Yu](https://forum.xojo.com/u/William_Yu)\
**Post date:** [December 11, 2025, 2:55pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/5 "2025-12-11T14:55:56Z")

</div>

> [@Christian\_Schmitz](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![Jerry\_Fritschle](https://forum.xojo.com/user_avatar/forum.xojo.com/jerry_fritschle/32/223_2.png) [@Jerry\_Fritschle](https://forum.xojo.com/u/Jerry_Fritschle)\
**Post date:** [December 11, 2025, 3:18pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/6 "2025-12-11T15:18:30Z")

</div>

> [@Christian\_Schmitz](#):
>
> It sounds a bit overkill to duplicate windows plugin size for this.

Would this be adding bloat to the built app?

---

<div class="post-metadata">

**Author:** ![Björn\_Eiríksson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Post date:** [December 11, 2025, 3:19pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/7 "2025-12-11T15:19:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Björn\_Eiríksson](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/da6949/32.png) [@Björn\_Eiríksson](https://forum.xojo.com/u/Bj%C3%B6rn_Eir%C3%ADksson)\
**Post date:** [December 11, 2025, 3:20pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/8 "2025-12-11T15:20:08Z")

</div>

No, no bloat to the built app. Since Xojo chooses which plugin segment to put in your built app and only puts one there.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [December 11, 2025, 5:21pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/9 "2025-12-11T17:21:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![William\_Yu](https://forum.xojo.com/user_avatar/forum.xojo.com/william_yu/32/610_2.png) [@William\_Yu](https://forum.xojo.com/u/William_Yu)\
**Post date:** [December 11, 2025, 7:32pm UTC](https://forum.xojo.com/t/how-to-know-in-a-plugin-if-app-is-compiled-for-winui/87196/10 "2025-12-11T19:32:44Z")

</div>

> [@Björn\_Eiríksson](#):
>
> Where I imagine to simulate something in WinUI theme wise it would want to alter its drawing but maybe not change a lot.

> [@Christian\_Schmitz](#):
>
> 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.
