Skip to content

Commit

Permalink
Merge pull request #316 from enisn/4.1-validation-color-fix
Browse files Browse the repository at this point in the history
Fix styling validation color from resource
  • Loading branch information
enisn authored Sep 21, 2022
2 parents f8b73a3 + cd4480f commit 0d4f03f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/InputKit.Maui/InputKit.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<SingleProject>true</SingleProject>
<MauiVersion>6.0.486</MauiVersion>
<PackageId>InputKit.Maui</PackageId>
<Version>4.1.4</Version>
<Version>4.1.5</Version>
<DefineConstants Condition="$(TargetFramework.Contains('-windows'))">$(DefineConstants);UWP</DefineConstants>

<!-- NuGet Package Info -->
Expand Down
2 changes: 1 addition & 1 deletion src/InputKit.Maui/Shared/Controls/CheckBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public void DisplayValidation()
{
var checkBox = (bindable as CheckBox);

if (checkBox.iconValidation.IsValueCreated)
if (checkBox.iconValidation?.IsValueCreated ?? false)
{
checkBox.iconValidation.Value.Fill = (Color)newValue;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Xamarin.Forms.InputKit/Shared/Controls/CheckBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public void DisplayValidation()
{
var checkBox = (bindable as CheckBox);

if (checkBox.iconValidation.IsValueCreated)
if (checkBox.iconValidation?.IsValueCreated ?? false)
{
checkBox.iconValidation.Value.Fill = ((Color)newValue).ToBrush();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Xamarin.Forms.InputKit/Xamarin.Forms.InputKit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<RootNamespace>Plugin.InputKit</RootNamespace>
<PackageId>Xamarin.Forms.InputKit</PackageId>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<Version>4.1.4</Version>
<Version>4.1.5</Version>
<PackOnBuild>false</PackOnBuild>
<NeutralLanguage>en-US</NeutralLanguage>
<DefineConstants>$(DefineConstants);</DefineConstants>
Expand Down

0 comments on commit 0d4f03f

Please sign in to comment.