修改.NET MAUI控件的图形

发布于 2025-01-30 14:21:55 字数 266 浏览 0 评论 0原文

我有什么办法可以修改UI控制元素的绘制方式? 我正在使用目前仅用于使用毛伊岛开关控件的Windows桌面的应用程序。但是,将开关用文本框绘制到侧面,无法修改开关的边框颜色或删除侧面的文本,如下所示:

”在此处输入图像描述

当前的交换机仅允许更改背景和点颜色。我似乎无法将头缠绕在绘制整个开关对象的内容上,以及需要对其进行修改以使开关在较暗的背景上更加突出。

Is there any way for me to modify how a UI Control Element is draw?
I am working on an app currently only for windows desktops where I am using the Switch Control from MAUI. However the switches are drawn with a textbox to the side and no way of modifying the border color of the switch or removing the text on the side as seen here:

enter image description here.

The currently implementation of Switches only allow for changing of the background and the dot colors. I cant seem to wrap my head around what is drawing the entire switch object and where I would need to modify it to make the switch stand out more on a darker background.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文