V3.0.5 更新内容见Updates.md

This commit is contained in:
Sunny 2021-07-11 10:54:53 +08:00
parent 9e56fc9fe5
commit 1863eea60e
25 changed files with 121 additions and 81 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -6,36 +6,36 @@
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
".NETCoreApp,Version=v5.0": { ".NETCoreApp,Version=v5.0": {
"SunnyUI/3.0.4": { "SunnyUI/3.0.5": {
"dependencies": { "dependencies": {
"SunnyUI.Common": "3.0.4" "SunnyUI.Common": "3.0.5"
}, },
"runtime": { "runtime": {
"SunnyUI.dll": {} "SunnyUI.dll": {}
} }
}, },
"SunnyUI.Common/3.0.4": { "SunnyUI.Common/3.0.5": {
"runtime": { "runtime": {
"lib/net5.0/SunnyUI.Common.dll": { "lib/net5.0/SunnyUI.Common.dll": {
"assemblyVersion": "3.0.4.0", "assemblyVersion": "3.0.5.0",
"fileVersion": "3.0.4.0" "fileVersion": "3.0.5.0"
} }
} }
} }
} }
}, },
"libraries": { "libraries": {
"SunnyUI/3.0.4": { "SunnyUI/3.0.5": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""
}, },
"SunnyUI.Common/3.0.4": { "SunnyUI.Common/3.0.5": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-eFd9v+FBd6+pkdjFIOx2SWXmifFmYh9RL8wgrtt3A4Q81uCo7NNiYYJys/YIcpxQReObOWmJ1h/3vZCD3sfnlA==", "sha512": "sha512-bP9fQW8P4fJAV6FfU2Xfw3MtOduLoj/j+MRfdIn3eq9bGqDepg/w5/xqXi393Vuxvxk24eY9+5YMRVyeS+tiRg==",
"path": "sunnyui.common/3.0.4", "path": "sunnyui.common/3.0.5",
"hashPath": "sunnyui.common.3.0.4.nupkg.sha512" "hashPath": "sunnyui.common.3.0.5.nupkg.sha512"
} }
} }
} }

Binary file not shown.

Binary file not shown.

View File

@ -6,36 +6,36 @@
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
".NETCoreApp,Version=v3.1": { ".NETCoreApp,Version=v3.1": {
"SunnyUI/3.0.4": { "SunnyUI/3.0.5": {
"dependencies": { "dependencies": {
"SunnyUI.Common": "3.0.4" "SunnyUI.Common": "3.0.5"
}, },
"runtime": { "runtime": {
"SunnyUI.dll": {} "SunnyUI.dll": {}
} }
}, },
"SunnyUI.Common/3.0.4": { "SunnyUI.Common/3.0.5": {
"runtime": { "runtime": {
"lib/netcoreapp3.1/SunnyUI.Common.dll": { "lib/netcoreapp3.1/SunnyUI.Common.dll": {
"assemblyVersion": "3.0.4.0", "assemblyVersion": "3.0.5.0",
"fileVersion": "3.0.4.0" "fileVersion": "3.0.5.0"
} }
} }
} }
} }
}, },
"libraries": { "libraries": {
"SunnyUI/3.0.4": { "SunnyUI/3.0.5": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""
}, },
"SunnyUI.Common/3.0.4": { "SunnyUI.Common/3.0.5": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-eFd9v+FBd6+pkdjFIOx2SWXmifFmYh9RL8wgrtt3A4Q81uCo7NNiYYJys/YIcpxQReObOWmJ1h/3vZCD3sfnlA==", "sha512": "sha512-bP9fQW8P4fJAV6FfU2Xfw3MtOduLoj/j+MRfdIn3eq9bGqDepg/w5/xqXi393Vuxvxk24eY9+5YMRVyeS+tiRg==",
"path": "sunnyui.common/3.0.4", "path": "sunnyui.common/3.0.5",
"hashPath": "sunnyui.common.3.0.4.nupkg.sha512" "hashPath": "sunnyui.common.3.0.5.nupkg.sha512"
} }
} }
} }

Binary file not shown.

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示: //通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.0.4.0")] [assembly: AssemblyVersion("3.0.5.0")]
[assembly: AssemblyFileVersion("3.0.4.0")] [assembly: AssemblyFileVersion("3.0.5.0")]

View File

@ -35,11 +35,11 @@
<ApplicationIcon>SunnyUI.ico</ApplicationIcon> <ApplicationIcon>SunnyUI.ico</ApplicationIcon>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="SunnyUI, Version=3.0.4.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="SunnyUI, Version=3.0.5.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\Bin\net40\SunnyUI.dll</HintPath> <HintPath>..\Bin\net40\SunnyUI.dll</HintPath>
</Reference> </Reference>
<Reference Include="SunnyUI.Common, Version=3.0.4.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="SunnyUI.Common, Version=3.0.5.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\Bin\net40\SunnyUI.Common.dll</HintPath> <HintPath>..\Bin\net40\SunnyUI.Common.dll</HintPath>
</Reference> </Reference>

View File

@ -6,9 +6,9 @@
<UseWindowsForms>true</UseWindowsForms> <UseWindowsForms>true</UseWindowsForms>
<RootNamespace>Sunny.UI.Demo</RootNamespace> <RootNamespace>Sunny.UI.Demo</RootNamespace>
<ApplicationIcon>SunnyUI.ico</ApplicationIcon> <ApplicationIcon>SunnyUI.ico</ApplicationIcon>
<AssemblyVersion>3.0.4.0</AssemblyVersion> <AssemblyVersion>3.0.5.0</AssemblyVersion>
<FileVersion>3.0.4.0</FileVersion> <FileVersion>3.0.5.0</FileVersion>
<Version>3.0.4</Version> <Version>3.0.5</Version>
<Authors>SunnyUI</Authors> <Authors>SunnyUI</Authors>
<Company>SunnyUI.Net</Company> <Company>SunnyUI.Net</Company>
<Copyright>Copyright ©SunnyUI.Net 2012-2021</Copyright> <Copyright>Copyright ©SunnyUI.Net 2012-2021</Copyright>
@ -24,7 +24,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="SunnyUI" Version="3.0.4" /> <PackageReference Include="SunnyUI" Version="3.0.5" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@ -6,54 +6,54 @@
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
".NETCoreApp,Version=v5.0": { ".NETCoreApp,Version=v5.0": {
"SunnyUI.Net5.Demo/3.0.4": { "SunnyUI.Net5.Demo/3.0.5": {
"dependencies": { "dependencies": {
"SunnyUI": "3.0.4" "SunnyUI": "3.0.5"
}, },
"runtime": { "runtime": {
"SunnyUI.Net5.Demo.dll": {} "SunnyUI.Net5.Demo.dll": {}
} }
}, },
"SunnyUI/3.0.4": { "SunnyUI/3.0.5": {
"dependencies": { "dependencies": {
"SunnyUI.Common": "3.0.4" "SunnyUI.Common": "3.0.5"
}, },
"runtime": { "runtime": {
"lib/net5.0-windows7.0/SunnyUI.dll": { "lib/net5.0-windows7.0/SunnyUI.dll": {
"assemblyVersion": "3.0.4.0", "assemblyVersion": "3.0.5.0",
"fileVersion": "3.0.4.0" "fileVersion": "3.0.5.0"
} }
} }
}, },
"SunnyUI.Common/3.0.4": { "SunnyUI.Common/3.0.5": {
"runtime": { "runtime": {
"lib/net5.0/SunnyUI.Common.dll": { "lib/net5.0/SunnyUI.Common.dll": {
"assemblyVersion": "3.0.4.0", "assemblyVersion": "3.0.5.0",
"fileVersion": "3.0.4.0" "fileVersion": "3.0.5.0"
} }
} }
} }
} }
}, },
"libraries": { "libraries": {
"SunnyUI.Net5.Demo/3.0.4": { "SunnyUI.Net5.Demo/3.0.5": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""
}, },
"SunnyUI/3.0.4": { "SunnyUI/3.0.5": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-bFGJ/r5BjMW86l6zjPd1P5lSXu5b3oOqxQ7dOxoZ4+Vgy6yM4QPRLcft1JDHRujx0DiUCztPu/Y+iaZoift9LQ==", "sha512": "sha512-0+U39GWGWBQFmoZom+UOzuST9FxsbUol5RWZgnBLzfGDlR+O4C72HjQ38u9G/SppWBswr5+dmGvFYHBA2HS4uQ==",
"path": "sunnyui/3.0.4", "path": "sunnyui/3.0.5",
"hashPath": "sunnyui.3.0.4.nupkg.sha512" "hashPath": "sunnyui.3.0.5.nupkg.sha512"
}, },
"SunnyUI.Common/3.0.4": { "SunnyUI.Common/3.0.5": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-eFd9v+FBd6+pkdjFIOx2SWXmifFmYh9RL8wgrtt3A4Q81uCo7NNiYYJys/YIcpxQReObOWmJ1h/3vZCD3sfnlA==", "sha512": "sha512-bP9fQW8P4fJAV6FfU2Xfw3MtOduLoj/j+MRfdIn3eq9bGqDepg/w5/xqXi393Vuxvxk24eY9+5YMRVyeS+tiRg==",
"path": "sunnyui.common/3.0.4", "path": "sunnyui.common/3.0.5",
"hashPath": "sunnyui.common.3.0.4.nupkg.sha512" "hashPath": "sunnyui.common.3.0.5.nupkg.sha512"
} }
} }
} }

View File

@ -1,8 +1,9 @@
{ {
"runtimeOptions": { "runtimeOptions": {
"additionalProbingPaths": [ "additionalProbingPaths": [
"C:\\Users\\Administrator\\.dotnet\\store\\|arch|\\|tfm|", "C:\\Users\\Sunny\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\Administrator\\.nuget\\packages" "C:\\Users\\Sunny\\.nuget\\packages",
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
] ]
} }
} }

View File

@ -45,7 +45,6 @@ namespace Sunny.UI
SetStyle(ControlStyles.DoubleBuffer | SetStyle(ControlStyles.DoubleBuffer |
ControlStyles.AllPaintingInWmPaint | ControlStyles.AllPaintingInWmPaint |
ControlStyles.OptimizedDoubleBuffer, true); ControlStyles.OptimizedDoubleBuffer, true);
UpdateStyles(); UpdateStyles();
BorderStyle = BorderStyle.None; BorderStyle = BorderStyle.None;
@ -159,34 +158,35 @@ namespace Sunny.UI
} }
} }
} }
/// <summary>
/// SizeChange导致treeNode闪屏
/// </summary>
const int TVM_SETEXTENDEDSTYLE = 0x112C;
const int TVS_EX_DOUBLEBUFFER = 0x0004;
private void UpdateExtendedStyles() // /// <summary>
{ // /// SizeChange导致treeNode闪屏
int style = 0; // /// </summary>
// const int TVM_SETEXTENDEDSTYLE = 0x112C;
// const int TVS_EX_DOUBLEBUFFER = 0x0004;
//
// private void UpdateExtendedStyles()
// {
// int style = 0;
//
// if (DoubleBuffered)
// style |= TVS_EX_DOUBLEBUFFER;
//
// if (Style != 0)
// Win32.User.SendMessage(Handle, TVM_SETEXTENDEDSTYLE, new IntPtr(TVS_EX_DOUBLEBUFFER), new IntPtr(style));
// }
//
// protected override void OnHandleCreated(EventArgs e)
// {
// base.OnHandleCreated(e);
// UpdateExtendedStyles();
// }
if (DoubleBuffered) //protected override void OnSizeChanged(EventArgs e)
style |= TVS_EX_DOUBLEBUFFER; //{
// base.OnSizeChanged(e);
if (Style != 0) // SetScrollInfo();
Win32.User.SendMessage(Handle, TVM_SETEXTENDEDSTYLE, new IntPtr(TVS_EX_DOUBLEBUFFER), new IntPtr(style)); //}
}
protected override void OnHandleCreated(EventArgs e)
{
base.OnHandleCreated(e);
UpdateExtendedStyles();
}
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
SetScrollInfo();
}
private void Bar_ValueChanged(object sender, EventArgs e) private void Bar_ValueChanged(object sender, EventArgs e)
{ {
@ -827,8 +827,14 @@ namespace Sunny.UI
protected override void WndProc(ref Message m) protected override void WndProc(ref Message m)
{ {
base.WndProc(ref m);
if (IsDisposed || Disposing) return; if (IsDisposed || Disposing) return;
if (m.Msg == Win32.User.WM_ERASEBKGND)
{
m.Result = IntPtr.Zero;
return;
}
base.WndProc(ref m);
Win32.User.ShowScrollBar(Handle, 3, false); Win32.User.ShowScrollBar(Handle, 3, false);
} }

View File

@ -200,7 +200,7 @@ namespace Sunny.UI.Properties {
} }
/// <summary> /// <summary>
/// 查找类似 V3.0.4 的本地化字符串。 /// 查找类似 V3.0.5 的本地化字符串。
/// </summary> /// </summary>
internal static string Version { internal static string Version {
get { get {

View File

@ -162,8 +162,8 @@
<value>..\Resources\notifier.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\notifier.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="Version" xml:space="preserve"> <data name="Version" xml:space="preserve">
<value>V3.0.4</value> <value>V3.0.5</value>
<comment>2021-05-20</comment> <comment>2021-07-11</comment>
</data> </data>
<data name="wind" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="wind" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\wind.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\wind.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>

View File

@ -8,7 +8,7 @@
<Description>SunnyUI.Net 是基于.Net Framework 4.0+、.Net Core3.1、.Net 5 框架的 C# WinForm 开源控件库、工具类库、扩展类库、多页面开发框架。</Description> <Description>SunnyUI.Net 是基于.Net Framework 4.0+、.Net Core3.1、.Net 5 框架的 C# WinForm 开源控件库、工具类库、扩展类库、多页面开发框架。</Description>
<Copyright>CopyRight © SunnyUI.Net 2012-2021</Copyright> <Copyright>CopyRight © SunnyUI.Net 2012-2021</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile> <PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>3.0.4</Version> <Version>3.0.5</Version>
<Authors>ShenYonghua</Authors> <Authors>ShenYonghua</Authors>
<Company>SunnyUI.Net</Company> <Company>SunnyUI.Net</Company>
<PackageId>SunnyUI</PackageId> <PackageId>SunnyUI</PackageId>
@ -61,7 +61,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="SunnyUI.Common" Version="3.0.4" /> <PackageReference Include="SunnyUI.Common" Version="3.0.5" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net40'"> <ItemGroup Condition="'$(TargetFramework)' == 'net40'">

View File

@ -1,5 +1,38 @@
:fa-plus:增加; :fa-asterisk:修改; :fa-minus:删除 :fa-plus:增加; :fa-asterisk:修改; :fa-minus:删除
#### 2021-07-11 V3.0.5
:fa-plus: 字体图标增加FontAwesome V5.15版本字体图标
:fa-plus: UISignal: 增加信号强度显示控件
:fa-plus: UIToolStripDropDown: 增加了一个弹窗管理类
:fa-asterisk: UIPage增加标题行后期以替代UITitlePage
:fa-asterisk: Demo的Controls下的页面全部从UITitlePage切换到UIPage后期会逐步舍弃UITitlePage。
:fa-asterisk: UIDataGridView增加了一个RowHeight默认23
:fa-asterisk: IStyleInterface设置为Public可基于此扩展外部控件
:fa-asterisk: UIRichTextBox支持可改背景色
:fa-asterisk: UIPagination更新了Demo分页切换事件加载数据。
:fa-asterisk: UITitlePage解决标题栏闪烁
:fa-asterisk: UITextBox增加图标和字体图标的显示
:fa-asterisk: UITextBox: MaximumEnabledMinimumEnabled代替HasMaximumHasMinim
:fa-asterisk: UIHeaderButton: 增加了TextImageRelation实现文本和图像的相对位置
:fa-asterisk: UIListBox修改对象绑定的显示问题
:fa-asterisk: UICombobox: 更新了数据绑定相关代码
:fa-asterisk: UITabControlTab页标题选中高亮颜色增加可调整高度
:fa-asterisk: UINavBar: 标题选中高亮颜色增加可调整高度
:fa-asterisk: UIListBox更新一处数据绑定显示错误
:fa-asterisk: UINavMenu增加右侧图标
:fa-asterisk: UIBattery修改可自定义背景色
:fa-asterisk: UILight增加方形显示优化渐变色
:fa-asterisk: UIHeaderButton增加ShowSelected是否显示选中状态
:fa-asterisk: UIBarChart修正一个显示的Bug
:fa-asterisk: UIRoundProcess修改显示值
:fa-asterisk: UIRichTextBox增加WordWrap属性
:fa-asterisk: UIDataGridView自定义单元格颜色
:fa-asterisk: IFame增加一个反馈的接口FeedbackPage可将对象反馈给Frame
:fa-asterisk: UIAvatar更改图片显示
:fa-asterisk: UIPagination设置总数在页面不超过总页数的情况下不刷新
:fa-asterisk: UITextBox等组合控件将其回调事件的Sender设置为this而不是其内置控件
:fa-asterisk: UIFlowLayoutPanel增加滚动条颜色属性
#### 2021-05-20 V3.0.4 #### 2021-05-20 V3.0.4
:fa-plus: UIObjectCollection带集合个数改变事件的对象集合类 :fa-plus: UIObjectCollection带集合个数改变事件的对象集合类
:fa-plus: UIStringCollection带集合个数改变事件的字符串集合类 :fa-plus: UIStringCollection带集合个数改变事件的字符串集合类