diff --git a/samples/ControlCatalog/Models/GDPValueConverter.cs b/samples/ControlCatalog/Models/GDPValueConverter.cs index f7975ac604..1ca3e9c8e4 100644 --- a/samples/ControlCatalog/Models/GDPValueConverter.cs +++ b/samples/ControlCatalog/Models/GDPValueConverter.cs @@ -19,11 +19,11 @@ namespace ControlCatalog.Models if (value is int gdp) { if (gdp <= 5000) - return Brushes.Orange; + return new SolidColorBrush(Colors.Orange, 0.6); else if (gdp <= 10000) - return Brushes.Yellow; + return new SolidColorBrush(Colors.Yellow, 0.6); else - return Brushes.LightGreen; + return new SolidColorBrush(Colors.LightGreen, 0.6); } return value; @@ -34,4 +34,4 @@ namespace ControlCatalog.Models throw new NotImplementedException(); } } -} \ No newline at end of file +} diff --git a/samples/ControlCatalog/Models/Person.cs b/samples/ControlCatalog/Models/Person.cs index a0abcfe8f4..47f41bc584 100644 --- a/samples/ControlCatalog/Models/Person.cs +++ b/samples/ControlCatalog/Models/Person.cs @@ -15,6 +15,7 @@ namespace ControlCatalog.Models { string _firstName; string _lastName; + bool _isBanned; public string FirstName { @@ -47,6 +48,17 @@ namespace ControlCatalog.Models } } + public bool IsBanned + { + get => _isBanned; + set + { + _isBanned = value; + + OnPropertyChanged(nameof(_isBanned)); + } + } + Dictionary> _errorLookup = new Dictionary>(); void SetError(string propertyName, string error) diff --git a/samples/ControlCatalog/Pages/DataGridPage.xaml b/samples/ControlCatalog/Pages/DataGridPage.xaml index 7b86bba6a9..d045626c2c 100644 --- a/samples/ControlCatalog/Pages/DataGridPage.xaml +++ b/samples/ControlCatalog/Pages/DataGridPage.xaml @@ -44,7 +44,8 @@ - + +