SunnyUI/docs/updatesi.md
2024-09-22 22:21:11 +08:00

21 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 升级指南
---
## 3.5.2-->3.6.0
- 本次升级对主题进行了重构隐藏了修改自定义颜色时需要设置的StyleCustomMode属性。
**不需要设置全局主题时**
所有控件的颜色修改所见即所得窗体关闭后再打开所设置的颜色会保存。默认的主题为UIStyle.Inherited(继承的全局主题)
**需要设置全局主题时**
不切换主题和上面的设置一致如需切换主题仍然保留控件用户自定义修改颜色在修改完颜色后将控件的主题设置为UIStyle.Custom(自定义)
重构主要是方便了新手用户的使用体验。
- UICheckBoxGroup
升级后原有的值变化事件
private void uiCheckBoxGroup1_ValueChanged(object sender, int index, string text, bool isChecked)
修改为:
private void uiCheckBoxGroup1_ValueChanged(object sender, CheckBoxGroupEventArgs e)
按Demo示例操作修改即可。
- UIForm: 修改默认ShowShadow边框阴影打开ShowRadius显示圆角关闭
ShowShadow打开时在Win11显示圆角窗体不需要可以关闭