Skip to content

Commit

Permalink
Merge pull request #380 from msc2402/bug-376-text-field-cardbackground
Browse files Browse the repository at this point in the history
Fixed typo in MaterialTextField
  • Loading branch information
martijn00 authored Oct 5, 2020
2 parents ec25e0b + e722073 commit 20bc606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion XF.Material/UI/MaterialTextField.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
x:Name="backgroundCard"
Grid.Row="0"
Grid.ColumnSpan="3"
BackgroundColor="{Binding CardBackgroudColor,Source={x:Reference ThisControl}}"
BackgroundColor="{Binding CardBackgroundColor,Source={x:Reference ThisControl}}"
CornerRadius="4,4,0,0" />
<material:MaterialIcon
x:Name="leadingIcon"
Expand Down
6 changes: 3 additions & 3 deletions XF.Material/UI/MaterialTextField.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public partial class MaterialTextField : ContentView, IMaterialElementConfigurat
{
public static readonly BindableProperty AlwaysShowUnderlineProperty = BindableProperty.Create(nameof(AlwaysShowUnderline), typeof(bool), typeof(MaterialTextField), false);

public static readonly BindableProperty CardBackgroundColorProperty = BindableProperty.Create(nameof(CardBackgroudColor), typeof(Color), typeof(MaterialTextField), Color.FromHex("#DCDCDC"));
public static readonly BindableProperty CardBackgroundColorProperty = BindableProperty.Create(nameof(CardBackgroundColor), typeof(Color), typeof(MaterialTextField), Color.FromHex("#DCDCDC"));

public static readonly BindableProperty ChoiceSelectedCommandProperty = BindableProperty.Create(nameof(ChoiceSelectedCommand), typeof(ICommand), typeof(MaterialTextField));

Expand Down Expand Up @@ -192,7 +192,7 @@ public bool AlwaysShowUnderline
/// <summary>
/// Gets or sets the background color of this text field.
/// </summary>
public Color CardBackgroudColor
public Color CardBackgroundColor
{
get => (Color)GetValue(CardBackgroundColorProperty);
set => SetValue(CardBackgroundColorProperty, value);
Expand Down Expand Up @@ -1069,7 +1069,7 @@ private void OnBackgroundColorChanged()
if (base.BackgroundColor != Color.Transparent)
{
if(base.BackgroundColor != Color.Default)
CardBackgroudColor = base.BackgroundColor;
CardBackgroundColor = base.BackgroundColor;
base.BackgroundColor = Color.Transparent;
}
}
Expand Down

0 comments on commit 20bc606

Please sign in to comment.