# Windows: DesktopTextField BackgroundColor is ignored when Password property is True

**URL:** <https://forum.xojo.com/t/windows-desktoptextfield-backgroundcolor-is-ignored-when-password-property-is-true/88123>\
**Category:** Windows\
**Created:** [April 20, 2026, 9:31pm UTC](https://forum.xojo.com/t/windows-desktoptextfield-backgroundcolor-is-ignored-when-password-property-is-true/88123 "2026-04-20T21:31:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_Hollmann](https://forum.xojo.com/user_avatar/forum.xojo.com/hugo_hollmann/32/779_2.png) [@Hugo\_Hollmann](https://forum.xojo.com/u/Hugo_Hollmann)\
**Post date:** [April 20, 2026, 9:31pm UTC](https://forum.xojo.com/t/windows-desktoptextfield-backgroundcolor-is-ignored-when-password-property-is-true/88123/1 "2026-04-20T21:31:05Z")

</div>

Hi everyone,

I’ve noticed a specific behavior in Windows (tested on Windows 11) regarding the DesktopTextField control. It seems that BackgroundColor and TextAlignment properties are being overridden or ignored when the Password property is set to True.

Is this behavior expected?

PS: Xojo 2026 r1

---

<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:** [April 21, 2026, 1:21pm UTC](https://forum.xojo.com/t/windows-desktoptextfield-backgroundcolor-is-ignored-when-password-property-is-true/88123/2 "2026-04-21T13:21:55Z")

</div>

> [@Hugo\_Hollmann](#):
>
> Is this behavior expected?

No, sounds like a bug, although is this only with WinUI enabled?

---

<div class="post-metadata">

**Author:** ![Hugo\_Hollmann](https://forum.xojo.com/user_avatar/forum.xojo.com/hugo_hollmann/32/779_2.png) [@Hugo\_Hollmann](https://forum.xojo.com/u/Hugo_Hollmann)\
**Post date:** [April 21, 2026, 6:50pm UTC](https://forum.xojo.com/t/windows-desktoptextfield-backgroundcolor-is-ignored-when-password-property-is-true/88123/3 "2026-04-21T18:50:32Z")

</div>

Yes, this is with WinUI enabled.  
With WinUI disabled it works normally.

---

<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:** [April 21, 2026, 7:21pm UTC](https://forum.xojo.com/t/windows-desktoptextfield-backgroundcolor-is-ignored-when-password-property-is-true/88123/4 "2026-04-21T19:21:37Z")

</div>

> [@Hugo\_Hollmann](#):
>
> Yes, this is with WinUI enabled.

Ok thanks, we’ll get this fixed [https://tracker.xojo.com/xojoinc/xojo/-/issues/81234](https://tracker.xojo.com/xojoinc/xojo/-/issues/81234)
