Skip to content

Commit faea1ec

Browse files
Feature/fix triggers on load event when replace image (#317)
## Target <!-- Why are you making this change? --> Fix triggers on load event when replace image #### Open Questions <!-- OPTIONAL - [ ] Use the GitHub checklists to spark discussion on issues that may arise from your approach. Please tick the box and explain your answer. --> ## Checklist <!-- It serves as a gentle reminder for common tasks. Confirm it's done and check everything that applies. --> - [x] Documentation updated - [x] Tests cover new or modified code - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] New dependencies added - [ ] Includes breaking changes - [ ] Version bumped ## Visuals <!-- OPTIONAL Show results both before and after this change. When the output changes, it can be a screenshot of a trace, metric, or log illustrating the change. --> --------- Co-authored-by: ColdForeign <tankon46555@gmail.com>
1 parent b3bf289 commit faea1ec

34 files changed

+639
-74
lines changed

examples/Cropper.Blazor.Demo.sln

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cropper.Blazor.MAUI.Net8",
2121
EndProject
2222
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cropper.Blazor.Server.Net8", "Cropper.Blazor.Server.Net8\Cropper.Blazor.Server.Net8.csproj", "{9A16F9F9-231A-42C8-A2E9-AE687141BC3B}"
2323
EndProject
24+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cropper.Blazor.WPF.Net6", "Cropper.Blazor.WPF.Net6\Cropper.Blazor.WPF.Net6.csproj", "{4E800E87-808D-4583-90E2-C3A13C25F38C}"
25+
EndProject
26+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{516A76C9-8502-4FC4-A614-9989C7C48E21}"
27+
EndProject
28+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cropper.Blazor.WebView.Net6", "Cropper.Blazor.WebView.Net6\Cropper.Blazor.WebView.Net6.csproj", "{BDE3364F-64EA-4906-A889-63CC4BD6EF25}"
29+
EndProject
30+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MAUI", "MAUI", "{4DED931E-A01B-4B5F-AA64-A003FC0F8DC1}"
31+
EndProject
32+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MVC", "MVC", "{C1872578-F52C-42A9-98E1-7057E54705E6}"
33+
EndProject
34+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Server", "Server", "{FE00A07D-B8ED-4AC5-81A7-9F0AF7AE949B}"
35+
EndProject
2436
Global
2537
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2638
Debug|Any CPU = Debug|Any CPU
@@ -59,18 +71,32 @@ Global
5971
{9A16F9F9-231A-42C8-A2E9-AE687141BC3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
6072
{9A16F9F9-231A-42C8-A2E9-AE687141BC3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
6173
{9A16F9F9-231A-42C8-A2E9-AE687141BC3B}.Release|Any CPU.Build.0 = Release|Any CPU
74+
{4E800E87-808D-4583-90E2-C3A13C25F38C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
75+
{4E800E87-808D-4583-90E2-C3A13C25F38C}.Debug|Any CPU.Build.0 = Debug|Any CPU
76+
{4E800E87-808D-4583-90E2-C3A13C25F38C}.Release|Any CPU.ActiveCfg = Release|Any CPU
77+
{4E800E87-808D-4583-90E2-C3A13C25F38C}.Release|Any CPU.Build.0 = Release|Any CPU
78+
{BDE3364F-64EA-4906-A889-63CC4BD6EF25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79+
{BDE3364F-64EA-4906-A889-63CC4BD6EF25}.Debug|Any CPU.Build.0 = Debug|Any CPU
80+
{BDE3364F-64EA-4906-A889-63CC4BD6EF25}.Release|Any CPU.ActiveCfg = Release|Any CPU
81+
{BDE3364F-64EA-4906-A889-63CC4BD6EF25}.Release|Any CPU.Build.0 = Release|Any CPU
6282
EndGlobalSection
6383
GlobalSection(SolutionProperties) = preSolution
6484
HideSolutionNode = FALSE
6585
EndGlobalSection
6686
GlobalSection(NestedProjects) = preSolution
67-
{7D576440-AFE9-4544-8473-0A557A545728} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
68-
{DCB512C2-9EF1-4777-82B8-D9E8FAFD3883} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
69-
{A607E161-5266-4B13-AB68-6DEBB8768F54} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
87+
{7D576440-AFE9-4544-8473-0A557A545728} = {4DED931E-A01B-4B5F-AA64-A003FC0F8DC1}
88+
{DCB512C2-9EF1-4777-82B8-D9E8FAFD3883} = {FE00A07D-B8ED-4AC5-81A7-9F0AF7AE949B}
89+
{A607E161-5266-4B13-AB68-6DEBB8768F54} = {FE00A07D-B8ED-4AC5-81A7-9F0AF7AE949B}
7090
{84AC7F07-3FB9-4147-AB61-733243686D9A} = {4F93F51C-1D65-4E5D-86F7-7BC5B8899180}
71-
{B6352D48-8912-40CA-B099-E337F1B3CD4B} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
72-
{0C1676CF-1503-4ECC-AD16-4FD844C0FCC0} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
73-
{9A16F9F9-231A-42C8-A2E9-AE687141BC3B} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
91+
{B6352D48-8912-40CA-B099-E337F1B3CD4B} = {C1872578-F52C-42A9-98E1-7057E54705E6}
92+
{0C1676CF-1503-4ECC-AD16-4FD844C0FCC0} = {4DED931E-A01B-4B5F-AA64-A003FC0F8DC1}
93+
{9A16F9F9-231A-42C8-A2E9-AE687141BC3B} = {FE00A07D-B8ED-4AC5-81A7-9F0AF7AE949B}
94+
{4E800E87-808D-4583-90E2-C3A13C25F38C} = {516A76C9-8502-4FC4-A614-9989C7C48E21}
95+
{516A76C9-8502-4FC4-A614-9989C7C48E21} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
96+
{BDE3364F-64EA-4906-A889-63CC4BD6EF25} = {516A76C9-8502-4FC4-A614-9989C7C48E21}
97+
{4DED931E-A01B-4B5F-AA64-A003FC0F8DC1} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
98+
{C1872578-F52C-42A9-98E1-7057E54705E6} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
99+
{FE00A07D-B8ED-4AC5-81A7-9F0AF7AE949B} = {49B4C364-A66D-44E3-8094-35C8CEC06100}
74100
EndGlobalSection
75101
GlobalSection(ExtensibilityGlobals) = postSolution
76102
SolutionGuid = {5FA0980D-10C3-4751-9432-DE20984B0A69}

examples/Cropper.Blazor.MAUI.Net7/Cropper.Blazor.MAUI.Net7.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<ItemGroup>
5353
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
5454
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="7.0.1" Version="7.0.1" />
55-
<PackageReference Include="MudBlazor" Version="6.11.1" />
55+
<PackageReference Include="MudBlazor" Version="6.19.1" />
5656
</ItemGroup>
5757

5858
<ItemGroup>

examples/Cropper.Blazor.MAUI.Net8/Cropper.Blazor.MAUI.Net8.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
</ItemGroup>
5959

6060
<ItemGroup>
61-
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
62-
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
63-
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)" />
61+
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.14" />
62+
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.14" />
63+
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="8.0.14" />
6464
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
65-
<PackageReference Include="MudBlazor" Version="6.11.1" />
65+
<PackageReference Include="MudBlazor" Version="6.19.1" />
6666
</ItemGroup>
6767

6868
<ItemGroup>

examples/Cropper.Blazor.MAUI.Net8/Platforms/Windows/App.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,4 @@ public App()
2121

2222
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
2323
}
24-
2524
}

examples/Cropper.Blazor.Server.Net6/Cropper.Blazor.Server.Net6.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="MudBlazor" Version="6.11.1" />
10+
<PackageReference Include="MudBlazor" Version="6.19.1" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

examples/Cropper.Blazor.Server.Net7/Cropper.Blazor.Server.Net7.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="MudBlazor" Version="6.11.1" />
10+
<PackageReference Include="MudBlazor" Version="6.19.1" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

examples/Cropper.Blazor.Server.Net8/Cropper.Blazor.Server.Net8.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="MudBlazor" Version="6.11.1" />
10+
<PackageReference Include="MudBlazor" Version="6.19.1" />
1111
</ItemGroup>
1212

1313
<ItemGroup>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Application x:Class="Cropper.Blazor.WPF.Net6.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:Cropper.Blazor.WPF.Net6"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System.Windows;
2+
3+
namespace Cropper.Blazor.WPF.Net6
4+
{
5+
/// <summary>
6+
/// Interaction logic for App.xaml
7+
/// </summary>
8+
public partial class App : Application
9+
{
10+
}
11+
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Windows;
2+
3+
[assembly: ThemeInfo(
4+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5+
//(used if a resource is not found in the page,
6+
// or application resource dictionaries)
7+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8+
//(used if a resource is not found in the page,
9+
// app, or any theme specific resource dictionaries)
10+
)]

0 commit comments

Comments
 (0)