* UIForm: 增加DPI强制缩放的函数ReSetDPIScale
This commit is contained in:
parent
fe6acb78fc
commit
ad600f6459
Binary file not shown.
Binary file not shown.
@ -93,6 +93,12 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ReSetDPIScale()
|
||||||
|
{
|
||||||
|
IsScaled = false;
|
||||||
|
SetDPIScale();
|
||||||
|
}
|
||||||
|
|
||||||
[DefaultValue(true)]
|
[DefaultValue(true)]
|
||||||
[Description("是否点击标题栏可以移动窗体"), Category("SunnyUI")]
|
[Description("是否点击标题栏可以移动窗体"), Category("SunnyUI")]
|
||||||
public bool Movable { get; set; } = true;
|
public bool Movable { get; set; } = true;
|
||||||
|
@ -56,5 +56,7 @@ namespace Sunny.UI
|
|||||||
bool SetParamToPage(int toPageIndex, int fromPageIndex, params object[] objects);
|
bool SetParamToPage(int toPageIndex, int fromPageIndex, params object[] objects);
|
||||||
|
|
||||||
bool SetParamToPage(Guid toPageGuid, Guid fromPageGuid, params object[] objects);
|
bool SetParamToPage(Guid toPageGuid, Guid fromPageGuid, params object[] objects);
|
||||||
|
void Init();
|
||||||
|
void Final();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,6 +92,12 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void ReSetDPIScale()
|
||||||
|
{
|
||||||
|
IsScaled = false;
|
||||||
|
SetDPIScale();
|
||||||
|
}
|
||||||
|
|
||||||
public void Render()
|
public void Render()
|
||||||
{
|
{
|
||||||
SetStyle(UIStyles.Style);
|
SetStyle(UIStyles.Style);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user