From 4d2927790374c9a41772d0835e8d159efdd996a0 Mon Sep 17 00:00:00 2001 From: Andrei Misiukevich Date: Thu, 3 Oct 2019 15:33:46 +0300 Subject: [PATCH] Updated Cube sample --- .../ViewModels/CardsSampleViewModel.cs | 10 +++++----- .../PanCardViewSample/Views/CubeSampleXamlView.xaml | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PanCardViewSample/PanCardViewSample/ViewModels/CardsSampleViewModel.cs b/PanCardViewSample/PanCardViewSample/ViewModels/CardsSampleViewModel.cs index 9350b6c..3bf9a02 100644 --- a/PanCardViewSample/PanCardViewSample/ViewModels/CardsSampleViewModel.cs +++ b/PanCardViewSample/PanCardViewSample/ViewModels/CardsSampleViewModel.cs @@ -19,11 +19,11 @@ public CardsSampleViewModel() { Items = new ObservableCollection { - new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Red }, - new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Green }, - new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Gold }, - new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Silver }, - new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Blue } + new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Red, Title = "First" }, + new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Green, Title = "Second" }, + new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Gold, Title = "Long Title" }, + new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Silver, Title = "4" }, + new { Source = CreateSource(), Ind = _imageCount++, Color = Color.Blue, Title = "5th" } }; PanPositionChangedCommand = new Command(v => diff --git a/PanCardViewSample/PanCardViewSample/Views/CubeSampleXamlView.xaml b/PanCardViewSample/PanCardViewSample/Views/CubeSampleXamlView.xaml index ff31f91..a16c1cb 100644 --- a/PanCardViewSample/PanCardViewSample/Views/CubeSampleXamlView.xaml +++ b/PanCardViewSample/PanCardViewSample/Views/CubeSampleXamlView.xaml @@ -17,6 +17,7 @@ @@ -29,7 +30,7 @@ FontSize="24" FontAttributes="Bold" TextColor="CadetBlue" - Text="{Binding Ind}"/> + Text="{Binding Title}"/>