-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
IsEnabledRefreshViewGallery.xaml
53 lines (53 loc) · 2.21 KB
/
IsEnabledRefreshViewGallery.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Xamarin.Forms.Controls.GalleryPages.RefreshViewGalleries.IsEnabledRefreshViewGallery"
Title="Is enabled">
<ContentPage.Content>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<RefreshView
Grid.Row="0"
x:Name="RefreshContainer"
IsRefreshing="{Binding IsRefreshing}"
RefreshColor="Pink"
Command="{Binding RefreshCommand}"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<CollectionView
ItemsSource="{Binding Items}">
<CollectionView.ItemTemplate>
<DataTemplate>
<ScrollView>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="48" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<BoxView
Grid.Column="0"
Color="{Binding Color}"
HeightRequest="48"/>
<Label
Grid.Column="1"
Text="{Binding Name}"/>
</Grid>
</ScrollView>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</RefreshView>
<Grid
Grid.Row="1">
<Button
x:Name="IsEnabledBtn"
Text="Disable RefreshView"
Clicked="IsEnabledBtnClicked"/>
</Grid>
</Grid>
</ContentPage.Content>
</ContentPage>