Skip to content

Commit c95f236

Browse files
committed
2.3.0.9
1 parent 5a80aa9 commit c95f236

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

-94.6 KB
Binary file not shown.
94.6 KB
Binary file not shown.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net7.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>Blazor.WebForm.Components.pfx</AssemblyOriginatorKeyFile>
7-
<Version>2.3.0.8</Version>
7+
<Version>2.3.0.9</Version>
88
<RootNamespace>asp</RootNamespace>
99
<Copyright>Jurio li</Copyright>
1010
<AssemblyName>Blazor.WebForm.Components</AssemblyName>
@@ -16,9 +16,9 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="Applied" Version="1.2.1.7" />
20-
<PackageReference Include="Blazor.WebForm.UI" Version="2.3.0.8" />
21-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.4" />
19+
<PackageReference Include="Applied" Version="1.2.1.8" />
20+
<PackageReference Include="Blazor.WebForm.UI" Version="2.3.0.9" />
21+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.5" />
2222
</ItemGroup>
2323

2424
<ItemGroup>

Blazor.WebForm.Components/Inner/Base/Style/StylePropertyComponent.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Linq;
66
using System.Text;
77
using System.Threading.Tasks;
8+
using System.Web.UI.WebControls;
89

910
namespace Blazor.WebForm.UI.PropertyComponents
1011
{
@@ -43,7 +44,7 @@ public abstract class StylePropertyComponent<T> : PropertyComponent<T>
4344
public string CssClass { get; set; }
4445

4546
[Parameter]
46-
public System.Web.UI.WebControls.BorderStyle BorderStyle { get; set; }
47+
public BorderStyle BorderStyle { get; set; }
4748

4849
[Parameter]
4950
public string BorderWidth { get; set; }
@@ -97,28 +98,28 @@ private Dictionary<string, object> FontInternal
9798
case nameof(this.Height):
9899
case nameof(this.Width):
99100
case nameof(this.BorderWidth):
100-
return this.ConvertFromString<System.Web.UI.WebControls.Unit>(parameter);
101+
return this.ConvertFromString<Unit>(parameter);
101102

102103
case nameof(this.FontBold):
103-
this.FontInternal["Bold"] = parameter.Value;
104+
this.FontInternal[nameof(FontInfo.Bold)] = parameter.Value;
104105
return null;
105106
case nameof(this.FontItalic):
106-
this.FontInternal["Italic"] = parameter.Value;
107+
this.FontInternal[nameof(FontInfo.Italic)] = parameter.Value;
107108
return null;
108109
case nameof(this.FontNames):
109-
this.FontInternal["Names"] = this.ConvertFromString<System.Web.UI.WebControls.FontNamesConverter, string[]>(parameter).Value;
110+
this.FontInternal[nameof(FontInfo.Names)] = this.ConvertFromString<FontNamesConverter, string[]>(parameter).Value;
110111
return null;
111112
case nameof(this.FontOverline):
112-
this.FontInternal["Overline"] = parameter.Value;
113+
this.FontInternal[nameof(FontInfo.Overline)] = parameter.Value;
113114
return null;
114115
case nameof(this.FontSize):
115-
this.FontInternal["Size"] = this.ConvertFromString<System.Web.UI.WebControls.FontUnit>(parameter).Value;
116+
this.FontInternal[nameof(FontInfo.Size)] = this.ConvertFromString<FontUnit>(parameter).Value;
116117
return null;
117118
case nameof(this.FontStrikeout):
118-
this.FontInternal["Strikeout"] = parameter.Value;
119+
this.FontInternal[nameof(FontInfo.Strikeout)] = parameter.Value;
119120
return null;
120121
case nameof(this.FontUnderline):
121-
this.FontInternal["Underline"] = parameter.Value;
122+
this.FontInternal[nameof(FontInfo.Underline)] = parameter.Value;
122123
return null;
123124
}
124125
return base.OnConvertParameter(parameter);

0 commit comments

Comments
 (0)