Skip to content

Commit

Permalink
Updated Cube sample
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich committed Oct 3, 2019
1 parent a0fc1c9 commit 4d29277
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public CardsSampleViewModel()
{
Items = new ObservableCollection<object>
{
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 =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<StackLayout Spacing="50" Padding="0, 0, 0, 50">
<ContentView HeightRequest="40" HorizontalOptions="FillAndExpand">
<controls:TabsControl
StripeColor="Gold"
ToFadeDuration="2000"
HeightRequest="40"
BindingContext="{x:Reference cube}">
Expand All @@ -29,7 +30,7 @@
FontSize="24"
FontAttributes="Bold"
TextColor="CadetBlue"
Text="{Binding Ind}"/>
Text="{Binding Title}"/>

</DataTemplate>
</controls:TabsControl.ItemTemplate>
Expand Down

0 comments on commit 4d29277

Please sign in to comment.