From 8488f7be1fa4912e5b92369c5562eb512a0553dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E9=A9=9A=E9=8F=B5?= Date: Mon, 27 May 2024 23:20:52 +0800 Subject: [PATCH 001/123] Revert "Update README-zh.md" This reverts commit 931516084bcf2012fef4a597e929046fb7a72035. --- README-zh.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README-zh.md b/README-zh.md index f9ea8f69..d7171abb 100644 --- a/README-zh.md +++ b/README-zh.md @@ -25,7 +25,7 @@ ### [ Wiki→ 正在进行快速更新](https://gitee.com/WPFDevelopersOrg/WPFDevelopers/wikis/pages) -### 此项目包含了 微信公众号 《 WPF开发者》 日常开发分享,欢迎Star🌟。 +### 此项目包含了 微信公众号 《 WPF开发者》 日常开发分享,欢迎Star。 ### 运行环境 Visual Studio 2022 From 5f5a5ea09593c1cc1e9e1e890ab4fbaddd12ba0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E9=A9=9A=E9=8F=B5?= Date: Mon, 27 May 2024 23:28:48 +0800 Subject: [PATCH 002/123] Reapply "dev pull request master" This reverts commit 2ee5e3685a1d7499bcc8b8e4b807c858d97a3472. --- src/WPFDevelopers.Net40/Themes/Generic.xaml | 11 +- src/WPFDevelopers.Net40/Themes/Theme.xaml | 469 ++++++++-------- .../WPFDevelopers.Net40.csproj | 4 +- src/WPFDevelopers.Net45x/Themes/Generic.xaml | 11 +- src/WPFDevelopers.Net45x/Themes/Theme.xaml | 499 +++++++++--------- .../WPFDevelopers.Net45x.csproj | 7 +- src/WPFDevelopers.Samples.Shared/App.xaml | 2 + .../Controls/NavigateMenu/NavigateMenu.cs | 50 +- .../Controls/NavigateMenu/NavigateMenu.xaml | 158 ++++++ .../AcrylicBlurWindowExample.xaml | 12 +- .../ExampleViews/AnimationAudioExample.xaml | 14 +- .../AnimationNavigationBar3DExample.xaml | 96 +++- .../ExampleViews/BarrageExample.xaml | 4 +- .../ExampleViews/BasicBarChartExample.xaml | 57 -- .../ExampleViews/BasicControlsExample.xaml | 96 ++-- .../ExampleViews/BreatheLightExample.xaml | 322 ++++++----- .../ExampleViews/BubblleControlExample.xaml | 14 +- .../ExampleViews/CarouselExample.xaml | 6 +- .../ExampleViews/CarouselExampleEx.xaml | 6 +- .../ExampleViews/ChartBarExample.xaml | 52 ++ ...xample.xaml.cs => ChartBarExample.xaml.cs} | 21 +- .../ExampleViews/ChartLineExample.xaml | 40 ++ .../ExampleViews/ChartLineExample.xaml.cs | 62 +++ ...artExample.xaml => ChartRadarExample.xaml} | 20 +- ...mple.xaml.cs => ChartRadarExample.xaml.cs} | 45 +- .../ExampleViews/ChatEmojiExample.xaml | 6 +- .../ExampleViews/CircularMenuExample.xaml | 4 +- .../CircularProgressBarExample.xaml | 10 +- .../CropAvatar/CropAvatarExample.xaml | 2 +- .../CropAvatar/CropAvatarWindow.xaml | 8 +- .../ExampleViews/CutImageExample.xaml | 2 +- .../DrapView/Controls/ElementAdorner.cs | 301 +++++++++++ .../DrapView/Controls/ThumbAdorner.cs | 418 +++++++++++++++ .../DrapView/Controls/ThumbAdorner2.cs | 404 ++++++++++++++ .../DrapView/Controls/ThumbAngle.cs | 99 ++++ .../DrapView/Controls/TransformThumb.cs | 242 +++++++++ .../DrapView/Controls/TransformThumb.xaml | 25 + .../ExampleViews/DrapView/Datas/PrintState.cs | 15 + .../ExampleViews/DrapView/Datas/ShapeType.cs | 21 + .../ExampleViews/DrapView/Datas/ThumbType.cs | 15 + .../DrapView/DrapViewExample.xaml | 159 ++++++ .../DrapView/DrapViewExample.xaml.cs | 229 ++++++++ .../DrawerMenu/DrawerMenuExample.xaml | 54 +- .../ExampleViews/EdgeLightExample.xaml | 10 +- .../Loading/BallLoadingExample.xaml | 4 +- .../Loading/CycleLoadingExample.xaml | 6 +- .../Loading/RingLoadingExample.xaml | 4 +- .../Loading/RollLoadingExample.xaml | 6 +- .../Loading/StreamerLoadingExample.xaml | 10 +- .../Loading/WaitLoadingExample.xaml | 4 +- .../ExampleViews/LoadingExample.xaml | 9 + .../ExampleViews/LoadingExample.xaml.cs | 30 +- .../ExampleViews/MagnifierExample.xaml | 4 +- .../ExampleViews/MainWindow.xaml | 34 +- .../ExampleViews/PaginationExample.xaml | 12 +- .../ExampleViews/RulerControlExample.xaml | 8 +- .../ExampleViews/SixGirdViewExample.xaml | 14 +- .../ExampleViews/SpotLightExample.xaml | 6 +- .../ExampleViews/StarrySkyExample.xaml | 8 +- .../ExampleViews/TaskbarItemInfoExample.xaml | 6 +- .../ExampleViews/ThermometerExample.xaml | 4 +- .../ExampleViews/VerifyCodeExample.xaml | 10 +- .../Helpers/MenuEnum.cs | 6 +- .../Models/NavigateMenuModel.cs | 12 +- .../ViewModels/MainVM.cs | 71 ++- .../WPFDevelopers.Samples.Shared.projitems | 43 +- .../WPFDevelopers.Samples40.csproj | 4 +- .../WPFDevelopers.Samples45x.csproj | 4 +- .../WPFDevelopers.SamplesCode.csproj | 16 +- .../AnimationNavigationBar3D.cs | 19 +- .../AnimationNavigationBar3DItem.cs | 56 +- .../BaseControls/SliderRepeatButton.cs | 32 ++ .../Controls/BaseControls/WDBorder.cs | 56 ++ .../Controls/BasicBarChart/BasicBarChart.cs | 118 ----- .../Controls/Charts/ChartBar.cs | 32 ++ .../Controls/Charts/ChartBase.cs | 150 ++++++ .../Controls/Charts/ChartLine.cs | 77 +++ .../RadarChart.cs => Charts/ChartRadar.cs} | 127 +++-- .../Controls/Charts/ChartRect.cs | 83 +++ .../Controls/Charts/ChartRound.cs | 10 + .../Controls/CropImage/CropImage.cs | 5 +- .../Controls/Loading/LoadingExt.cs | 32 ++ .../Controls/MessageBox/MessageBox.cs | 12 +- .../{WPFMessageBox.cs => WDMessageBox.cs} | 61 ++- .../Controls/Pagination/Pagination.cs | 11 + .../Controls/RadarChart/RadarModel.cs | 33 -- .../Controls/ScreenCut/ScreenCaptureExt.cs | 7 +- .../CornerRadiusToSurroundConverter.cs | 63 +++ .../Converts/WidthHeightToRectConverter.cs | 21 + .../Core/Helpers/ControlsHelper.cs | 20 + .../Core/Helpers/ElementHelper.cs | 44 +- .../Core/Helpers/GeometryHelper.cs | 156 ++++++ .../Core/Helpers/Helper.cs | 7 +- .../Core/Helpers/Win32.cs | 10 +- src/WPFDevelopers.Shared/LanguageManager.cs | 44 ++ .../Languages/Language.Designer.cs | 111 ++++ .../Languages/Language.en-US.resx | 186 +++++++ .../Languages/Language.ko-KR.resx | 186 +++++++ .../Languages/Language.resx | 166 ++++++ .../Styles/Styles.DataGrid.xaml | 66 +-- .../Styles/Styles.DatePicker.xaml | 2 +- .../Styles/Styles.Expander.xaml | 66 ++- .../Styles/Styles.GroupBox.xaml | 10 +- .../Styles/Styles.ListBox.xaml | 17 +- .../Styles/Styles.ListView.xaml | 35 +- .../Styles/Styles.Menu.xaml | 7 +- .../Styles/Styles.MessageBox.xaml | 35 +- .../Styles/Styles.PasswordBox.xaml | 29 +- .../Styles/Styles.ProgressBar.xaml | 10 +- .../Styles/Styles.Slider.xaml | 35 +- .../Styles/Styles.TabControl.xaml | 37 +- .../Styles/Styles.TextBox.xaml | 36 +- .../Styles/Styles.TreeView.xaml | 11 +- .../Themes/AnimationNavigationBar3D.xaml | 43 +- .../Themes/Basic/ControlBasic.xaml | 3 + .../Themes/Basic/Dark.Color.xaml | 76 ++- .../Themes/Basic/Light.Color.xaml | 12 + .../Themes/CropAvatar.xaml | 7 +- .../Themes/CropImage.xaml | 3 +- .../Themes/DrawerMenu.xaml | 8 +- src/WPFDevelopers.Shared/Themes/Message.xaml | 5 +- .../Themes/NavigateMenu.xaml | 154 ------ .../Themes/Pagination.xaml | 48 +- .../Themes/ScreenCut.xaml | 19 +- src/WPFDevelopers.Shared/Themes/Theme40.txt | 1 - src/WPFDevelopers.Shared/Themes/Theme45x.txt | 1 - .../WPFDevelopers.Shared.projitems | 26 +- src/WPFDevelopers.sln | 2 + 128 files changed, 5467 insertions(+), 1709 deletions(-) rename src/{WPFDevelopers.Shared => WPFDevelopers.Samples.Shared}/Controls/NavigateMenu/NavigateMenu.cs (67%) create mode 100644 src/WPFDevelopers.Samples.Shared/Controls/NavigateMenu/NavigateMenu.xaml delete mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/BasicBarChartExample.xaml create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/ChartBarExample.xaml rename src/WPFDevelopers.Samples.Shared/ExampleViews/{BasicBarChartExample.xaml.cs => ChartBarExample.xaml.cs} (81%) create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/ChartLineExample.xaml create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/ChartLineExample.xaml.cs rename src/WPFDevelopers.Samples.Shared/ExampleViews/{RadarChartExample.xaml => ChartRadarExample.xaml} (75%) rename src/WPFDevelopers.Samples.Shared/ExampleViews/{RadarChartExample.xaml.cs => ChartRadarExample.xaml.cs} (69%) create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Controls/ElementAdorner.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Controls/ThumbAdorner.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Controls/ThumbAdorner2.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Controls/ThumbAngle.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Controls/TransformThumb.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Controls/TransformThumb.xaml create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Datas/PrintState.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Datas/ShapeType.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/Datas/ThumbType.cs create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/DrapViewExample.xaml create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/DrapView/DrapViewExample.xaml.cs create mode 100644 src/WPFDevelopers.Shared/Controls/BaseControls/SliderRepeatButton.cs create mode 100644 src/WPFDevelopers.Shared/Controls/BaseControls/WDBorder.cs delete mode 100644 src/WPFDevelopers.Shared/Controls/BasicBarChart/BasicBarChart.cs create mode 100644 src/WPFDevelopers.Shared/Controls/Charts/ChartBar.cs create mode 100644 src/WPFDevelopers.Shared/Controls/Charts/ChartBase.cs create mode 100644 src/WPFDevelopers.Shared/Controls/Charts/ChartLine.cs rename src/WPFDevelopers.Shared/Controls/{RadarChart/RadarChart.cs => Charts/ChartRadar.cs} (50%) create mode 100644 src/WPFDevelopers.Shared/Controls/Charts/ChartRect.cs create mode 100644 src/WPFDevelopers.Shared/Controls/Charts/ChartRound.cs create mode 100644 src/WPFDevelopers.Shared/Controls/Loading/LoadingExt.cs rename src/WPFDevelopers.Shared/Controls/MessageBox/{WPFMessageBox.cs => WDMessageBox.cs} (74%) delete mode 100644 src/WPFDevelopers.Shared/Controls/RadarChart/RadarModel.cs create mode 100644 src/WPFDevelopers.Shared/Core/Converts/CornerRadiusToSurroundConverter.cs create mode 100644 src/WPFDevelopers.Shared/Core/Converts/WidthHeightToRectConverter.cs create mode 100644 src/WPFDevelopers.Shared/Core/Helpers/GeometryHelper.cs create mode 100644 src/WPFDevelopers.Shared/LanguageManager.cs create mode 100644 src/WPFDevelopers.Shared/Languages/Language.Designer.cs create mode 100644 src/WPFDevelopers.Shared/Languages/Language.en-US.resx create mode 100644 src/WPFDevelopers.Shared/Languages/Language.ko-KR.resx create mode 100644 src/WPFDevelopers.Shared/Languages/Language.resx delete mode 100644 src/WPFDevelopers.Shared/Themes/NavigateMenu.xaml diff --git a/src/WPFDevelopers.Net40/Themes/Generic.xaml b/src/WPFDevelopers.Net40/Themes/Generic.xaml index 2847a498..04a35980 100644 --- a/src/WPFDevelopers.Net40/Themes/Generic.xaml +++ b/src/WPFDevelopers.Net40/Themes/Generic.xaml @@ -3,6 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:control="clr-namespace:WPFDevelopers.Controls" xmlns:converts="clr-namespace:WPFDevelopers.Converts" + xmlns:resx="clr-namespace:WPFDevelopers" xmlns:shell="clr-namespace:Microsoft.Windows.Shell" xmlns:wd="clr-namespace:WPFDevelopers.Net40"> @@ -74,7 +75,8 @@ Padding="0" Command="{Binding Source={x:Static shell:SystemCommands.MinimizeWindowCommand}}" IsTabStop="False" - Style="{DynamicResource WD.WindowButtonStyle}"> + Style="{DynamicResource WD.WindowButtonStyle}" + ToolTip="{Binding [Minimize], Source={x:Static resx:LanguageManager.Instance}}"> + Style="{DynamicResource WD.WindowButtonStyle}" + ToolTip="{Binding [Maximize], Source={x:Static resx:LanguageManager.Instance}}"> + Style="{DynamicResource WD.WindowButtonStyle}" + ToolTip="{Binding [Close], Source={x:Static resx:LanguageManager.Instance}}"> + #AA000000 #909399 @@ -145,6 +145,8 @@ 6 6 + + 0,0,0,2 - - - + + + - - + + @@ -346,26 +348,26 @@ - - - - - - + + + + + + - - - - - - - - - + + + + + + + + + @@ -772,23 +774,23 @@ - - - - @@ -860,7 +862,7 @@ - + @@ -940,9 +942,9 @@ - + - + @@ -1401,14 +1403,28 @@ - - + @@ -2973,6 +2992,8 @@ + + @@ -2986,10 +3007,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + @@ -346,26 +348,26 @@ - - - - - - + + + + + + - - - - - - - - - + + + + + + + + + @@ -773,23 +775,23 @@ - - - - @@ -861,7 +863,7 @@ - + @@ -941,9 +943,9 @@ - + - + @@ -1402,14 +1404,28 @@ - - + @@ -2974,6 +2993,8 @@ + + @@ -2987,10 +3008,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - + - + - + - + diff --git a/src/WPFDevelopers.Samples.Shared/ExampleViews/BreatheLightExample.xaml b/src/WPFDevelopers.Samples.Shared/ExampleViews/BreatheLightExample.xaml index a358774c..bfe7858c 100644 --- a/src/WPFDevelopers.Samples.Shared/ExampleViews/BreatheLightExample.xaml +++ b/src/WPFDevelopers.Samples.Shared/ExampleViews/BreatheLightExample.xaml @@ -1,149 +1,201 @@ - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - 周星星|达叔 - - 正在直播 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - From ee939560d4c2188c260d3be7152e58e1bcbfd448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E9=A9=9A=E9=8F=B5?= Date: Thu, 17 Oct 2024 21:32:37 +0800 Subject: [PATCH 097/123] Update MainWindow.xaml.cs --- .../ExampleViews/MainWindow.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/WPFDevelopers.Samples.Shared/ExampleViews/MainWindow.xaml.cs b/src/WPFDevelopers.Samples.Shared/ExampleViews/MainWindow.xaml.cs index 8ccda5b2..5a0e6948 100644 --- a/src/WPFDevelopers.Samples.Shared/ExampleViews/MainWindow.xaml.cs +++ b/src/WPFDevelopers.Samples.Shared/ExampleViews/MainWindow.xaml.cs @@ -71,5 +71,10 @@ void Create(double to) }; grayscaleEffect.BeginAnimation(GrayscaleEffect.FactorProperty, doubleAnimation); } + public void IsTwink() + { + WpfNotifyIcon.IsTwink = !WpfNotifyIcon.IsTwink; + menuItemTwink.IsChecked = WpfNotifyIcon.IsTwink; + } } } From 2a8f1e49a493df7cb5bc5466ec6dd13efefc5b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E9=A9=9A=E9=8F=B5?= Date: Thu, 17 Oct 2024 21:33:12 +0800 Subject: [PATCH 098/123] Create NotifyIconExample --- .../ExampleViews/NotifyIconExample.xaml | 38 ++++++++++++++++++ .../ExampleViews/NotifyIconExample.xaml.cs | 40 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/NotifyIconExample.xaml create mode 100644 src/WPFDevelopers.Samples.Shared/ExampleViews/NotifyIconExample.xaml.cs diff --git a/src/WPFDevelopers.Samples.Shared/ExampleViews/NotifyIconExample.xaml b/src/WPFDevelopers.Samples.Shared/ExampleViews/NotifyIconExample.xaml new file mode 100644 index 00000000..e71fe019 --- /dev/null +++ b/src/WPFDevelopers.Samples.Shared/ExampleViews/NotifyIconExample.xaml @@ -0,0 +1,38 @@ + + + + + +