* UIPage: 默认设置AutoScaleMode为None

This commit is contained in:
Sunny 2022-04-02 23:59:34 +08:00
parent f635e11ab3
commit c9b6653ad1
4 changed files with 4 additions and 0 deletions

Binary file not shown.

View File

@ -17,6 +17,7 @@
* : 2020-01-01 * : 2020-01-01
* *
* 2022-04-02: V3.1.1 * 2022-04-02: V3.1.1
* 2022-04-02: V3.1.2 AutoScaleMode为None
******************************************************************************/ ******************************************************************************/
using System; using System;

View File

@ -31,6 +31,7 @@
* 2022-02-09: V3.1.0 SetParamToPage * 2022-02-09: V3.1.0 SetParamToPage
* 2022-03-19: V3.1.1 * 2022-03-19: V3.1.1
* 2022-03-28: V3.1.1 * 2022-03-28: V3.1.1
* 2022-04-02: V3.1.2 AutoScaleMode为None
******************************************************************************/ ******************************************************************************/
using System; using System;

View File

@ -24,6 +24,7 @@
* 2021-08-24: V3.0.6 OnLoad在加载时重复加载两次的问题 * 2021-08-24: V3.0.6 OnLoad在加载时重复加载两次的问题
* 2021-12-01: V3.0.9 FeedBack和SetParam函数 * 2021-12-01: V3.0.9 FeedBack和SetParam函数
* 2021-12-30: V3.0.9 NeedReloadLoad * 2021-12-30: V3.0.9 NeedReloadLoad
* 2022-04-02: V3.1.2 AutoScaleMode为None
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -305,6 +306,7 @@ namespace Sunny.UI
protected override void OnShown(EventArgs e) protected override void OnShown(EventArgs e)
{ {
base.OnShown(e); base.OnShown(e);
if (AutoScaleMode == AutoScaleMode.Font) AutoScaleMode = AutoScaleMode.None;
IsShown = true; IsShown = true;
} }