gpt4 book ai didi

wpf - 在 WPF 中更改切换按钮的自定义行为

转载 作者:行者123 更新时间:2023-12-04 14:34:00 24 4
gpt4 key购买 nike

我是 WPF 的新手。

改变切换按钮行为的方法是什么。
enter image description  here
enter image description here
有黑色的baground,没有边框。
是否需要使用控制模板?

最佳答案

是的,您想使用 ControlTemplate改如何ToggleButton看起来。查看 ToggleButton 的页面以及这篇文章:

Customizing the Appearance of an Existing Control by Creating a ControlTemplate

让你开始。

关于wpf - 在 WPF 中更改切换按钮的自定义行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6032385/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com