Skip to content

Commit 164b1ce

Browse files
committed
1.2.0.2
1 parent 80638a0 commit 164b1ce

4 files changed

Lines changed: 54 additions & 2 deletions

File tree

-88 KB
Binary file not shown.
88.2 KB
Binary file not shown.

Blazor.WebForm.Components/Blazor.WebForm.Components.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net5.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>Blazor.WebForm.Components.pfx</AssemblyOriginatorKeyFile>
7-
<Version>1.2.0.1</Version>
7+
<Version>1.2.0.2</Version>
88
<RootNamespace>asp</RootNamespace>
99
<Copyright>Jurio li</Copyright>
1010
<AssemblyName>Blazor.WebForm.Components</AssemblyName>
@@ -17,7 +17,7 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Applied" Version="1.2.1.6" />
20-
<PackageReference Include="Blazor.WebForm.UI" Version="1.2.0.1" />
20+
<PackageReference Include="Blazor.WebForm.UI" Version="1.2.0.2" />
2121
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.10" />
2222
</ItemGroup>
2323

Blazor.WebForm.Components/FileUpload.razor

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,58 @@
2020
}
2121
}
2222

23+
[Parameter]
24+
public bool AutoPostBack
25+
{
26+
get
27+
{
28+
return this.Control.AutoPostBack;
29+
}
30+
set
31+
{
32+
this.Control.AutoPostBack = value;
33+
}
34+
}
35+
36+
[Parameter]
37+
public bool CausesValidation
38+
{
39+
get
40+
{
41+
return this.Control.CausesValidation;
42+
}
43+
set
44+
{
45+
this.Control.CausesValidation = value;
46+
}
47+
}
48+
49+
[Parameter]
50+
public string ValidationGroup
51+
{
52+
get
53+
{
54+
return this.Control.ValidationGroup;
55+
}
56+
set
57+
{
58+
this.Control.ValidationGroup = value;
59+
}
60+
}
61+
62+
[Parameter]
63+
public EventHandler OnPostedFileChanged
64+
{
65+
get
66+
{
67+
return this.GetEventProperty();
68+
}
69+
set
70+
{
71+
this.SetEventProperty(value, i => this.Control.PostedFileChanged += i, i => this.Control.PostedFileChanged -= i);
72+
}
73+
}
74+
2375
//public byte[] FileBytes
2476
//{
2577
// get

0 commit comments

Comments
 (0)