Skip to content

Commit 8aac382

Browse files
committed
1.1.7.0
1 parent 3d0a57e commit 8aac382

5 files changed

Lines changed: 208 additions & 3 deletions
-86.1 KB
Binary file not shown.
86.7 KB
Binary file not shown.

Blazor.WebForm.Components/Base/MultipleSelectionListControlComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public string[] SelectedValues
6969
}
7070
finally
7171
{
72-
this.AutoPostBack = true;
72+
this.AutoPostBack = autoPostBack;
7373
}
7474
}
7575
}

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.1.6.8</Version>
7+
<Version>1.1.7.0</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.5" />
20-
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.6.8" />
20+
<PackageReference Include="Blazor.WebForm.UI" Version="1.1.7" />
2121
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.8" />
2222
</ItemGroup>
2323

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
@using Blazor.WebForm.UI;
2+
@using Blazor.WebForm.UI.ControlComponents;
3+
@using System.Drawing;
4+
@using System.Web.UI;
5+
@using System.Web.UI.WebControls;
6+
@inherits UserControlComponent<Extensions.Web.UI.WebControls.ContainerButton>
7+
@this.Render(this.Control)
8+
@code {
9+
private CommandEventHandler _command;
10+
11+
[Parameter]
12+
public bool CausesValidation
13+
{
14+
get
15+
{
16+
return this.Control.CausesValidation;
17+
}
18+
set
19+
{
20+
this.Control.CausesValidation = value;
21+
}
22+
}
23+
24+
[Parameter]
25+
public string OnClientClick
26+
{
27+
get
28+
{
29+
return this.Control.OnClientClick;
30+
}
31+
set
32+
{
33+
this.Control.OnClientClick = value;
34+
}
35+
}
36+
37+
[Parameter]
38+
public string Style
39+
{
40+
get
41+
{
42+
return this.Control.Style.Value;
43+
}
44+
set
45+
{
46+
this.Control.Style.Value = value;
47+
}
48+
}
49+
50+
[Parameter]
51+
public string FlashColor
52+
{
53+
get
54+
{
55+
return this.ConvertToString(this.Control.FlashColor);
56+
}
57+
set
58+
{
59+
this.Control.FlashColor = this.ConvertFromString<Color>(value);
60+
}
61+
}
62+
63+
[Parameter]
64+
public bool Enabled
65+
{
66+
get
67+
{
68+
return this.Control.Enabled;
69+
}
70+
set
71+
{
72+
this.Control.Enabled = value;
73+
}
74+
}
75+
76+
[Parameter]
77+
public string ValidationGroup
78+
{
79+
get
80+
{
81+
return this.Control.ValidationGroup;
82+
}
83+
set
84+
{
85+
this.Control.ValidationGroup = value;
86+
}
87+
}
88+
89+
[Parameter]
90+
public ContainerType Container
91+
{
92+
get
93+
{
94+
return this.Control.Container;
95+
}
96+
set
97+
{
98+
this.Control.Container = value;
99+
}
100+
}
101+
102+
[Parameter]
103+
public string TagName
104+
{
105+
get
106+
{
107+
return this.Control.TagName;
108+
}
109+
set
110+
{
111+
this.Control.TagName = value;
112+
}
113+
}
114+
115+
[Parameter]
116+
public string Text
117+
{
118+
get
119+
{
120+
return this.Control.Text;
121+
}
122+
set
123+
{
124+
this.Control.Text = value;
125+
}
126+
}
127+
128+
[Parameter]
129+
public string CommandArgument
130+
{
131+
get
132+
{
133+
return this.Control.CommandArgument;
134+
}
135+
set
136+
{
137+
this.Control.CommandArgument = value;
138+
}
139+
}
140+
141+
[Parameter]
142+
public string CommandName
143+
{
144+
get
145+
{
146+
return this.Control.CommandName;
147+
}
148+
set
149+
{
150+
this.Control.CommandName = value;
151+
}
152+
}
153+
154+
//[Parameter]
155+
//public string PostBackUrl
156+
//{
157+
// get
158+
// {
159+
// return this.Control.PostBackUrl;
160+
// }
161+
// set
162+
// {
163+
// this.Control.PostBackUrl = value;
164+
// }
165+
//}
166+
167+
[Parameter]
168+
public EventHandler OnClick
169+
{
170+
get
171+
{
172+
return this.GetEventProperty();
173+
}
174+
set
175+
{
176+
this.SetEventProperty(value, i => this.Control.Click += i, i => this.Control.Click -= i);
177+
}
178+
}
179+
180+
[Parameter]
181+
public CommandEventHandler OnCommand
182+
{
183+
get
184+
{
185+
return _command;
186+
}
187+
set
188+
{
189+
if (value != null)
190+
{
191+
this.Control.Command += InvokeCommand;
192+
}
193+
else
194+
{
195+
this.Control.Command -= InvokeCommand;
196+
}
197+
_command = value;
198+
}
199+
}
200+
201+
private void InvokeCommand(object sender, CommandEventArgs e)
202+
{
203+
_command.Invoke(sender, e);
204+
}
205+
}

0 commit comments

Comments
 (0)