diff --git a/Bin/net40/SunnyUI.Demo.exe b/Bin/net40/SunnyUI.Demo.exe index 85c57d2e..2223086a 100644 Binary files a/Bin/net40/SunnyUI.Demo.exe and b/Bin/net40/SunnyUI.Demo.exe differ diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index c9d40446..543745bf 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index b840ac5b..e4bf406e 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -93,6 +93,12 @@ namespace Sunny.UI } } + public void ReSetDPIScale() + { + IsScaled = false; + SetDPIScale(); + } + [DefaultValue(true)] [Description("是否点击标题栏可以移动窗体"), Category("SunnyUI")] public bool Movable { get; set; } = true; diff --git a/SunnyUI/Frames/IFrame.cs b/SunnyUI/Frames/IFrame.cs index 35adecb8..48a37d93 100644 --- a/SunnyUI/Frames/IFrame.cs +++ b/SunnyUI/Frames/IFrame.cs @@ -56,5 +56,7 @@ namespace Sunny.UI bool SetParamToPage(int toPageIndex, int fromPageIndex, params object[] objects); bool SetParamToPage(Guid toPageGuid, Guid fromPageGuid, params object[] objects); + void Init(); + void Final(); } } diff --git a/SunnyUI/Frames/UIPage.cs b/SunnyUI/Frames/UIPage.cs index ba335aed..3bed4ac6 100644 --- a/SunnyUI/Frames/UIPage.cs +++ b/SunnyUI/Frames/UIPage.cs @@ -92,6 +92,12 @@ namespace Sunny.UI } } + public void ReSetDPIScale() + { + IsScaled = false; + SetDPIScale(); + } + public void Render() { SetStyle(UIStyles.Style);