diff --git a/Smartway.UiComponent.Sample/DummyArticle.cs b/Smartway.UiComponent.Sample/DummyArticle.cs index 53d3407..cd5d3ee 100644 --- a/Smartway.UiComponent.Sample/DummyArticle.cs +++ b/Smartway.UiComponent.Sample/DummyArticle.cs @@ -25,7 +25,7 @@ public ICommand NavigationCommand public object NavigationParameter { get; set; } public string Status { get; set; } - public DateTime? ShortageAt + public DateTime? OnShortageSince { get => DateTime.Today; set => throw new NotImplementedException(); diff --git a/Smartway.UiComponent.Sample/SectionSheet/ViewModels/SectionSheetSampleViewModel.cs b/Smartway.UiComponent.Sample/SectionSheet/ViewModels/SectionSheetSampleViewModel.cs index f866b63..01b5ada 100644 --- a/Smartway.UiComponent.Sample/SectionSheet/ViewModels/SectionSheetSampleViewModel.cs +++ b/Smartway.UiComponent.Sample/SectionSheet/ViewModels/SectionSheetSampleViewModel.cs @@ -1,10 +1,10 @@ -using System.Collections.Generic; +using System.Collections.ObjectModel; namespace Smartway.UiComponent.Sample.SectionSheet.ViewModels { class SectionSheetSampleViewModel: ViewModel { - public List Articles => new List + public ObservableCollection Articles => new ObservableCollection { new DummyArticle { diff --git a/Smartway.UiComponent/CardLists/ArticleCardList.xaml b/Smartway.UiComponent/CardLists/ArticleCardList.xaml index faa3264..09a5bcd 100644 --- a/Smartway.UiComponent/CardLists/ArticleCardList.xaml +++ b/Smartway.UiComponent/CardLists/ArticleCardList.xaml @@ -19,7 +19,7 @@ Gencode="{Binding Gencode}" NavigationCommand="{Binding NavigationCommand}" NavigationParameter="{Binding NavigationParameter}" - ShortageAt="{Binding ShortageAt}" + OnShortageSince="{Binding OnShortageSince}" /> diff --git a/Smartway.UiComponent/CardLists/ExpanderCardList.xaml.cs b/Smartway.UiComponent/CardLists/ExpanderCardList.xaml.cs index 1f00383..a30a9b8 100644 --- a/Smartway.UiComponent/CardLists/ExpanderCardList.xaml.cs +++ b/Smartway.UiComponent/CardLists/ExpanderCardList.xaml.cs @@ -158,7 +158,7 @@ private void SaveAction(NotifyCollectionChangedEventArgs e) private async Task OnExpanderClick() { - ExpandCommand.Execute(null); + ExpandCommand?.Execute(null); if (ExpanderState != ExpanderState.Expanding) return; diff --git a/Smartway.UiComponent/Cards/ArticleCard.xaml b/Smartway.UiComponent/Cards/ArticleCard.xaml index f762531..596bdad 100644 --- a/Smartway.UiComponent/Cards/ArticleCard.xaml +++ b/Smartway.UiComponent/Cards/ArticleCard.xaml @@ -66,8 +66,8 @@