Skip to content

Commit f8b26a3

Browse files
author
Colin Wilmans
committed
*bugfix* Browse: enable browsing
1 parent 196ff85 commit f8b26a3

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

src/BluOsNadRemote.App/Views/BrowsePage.xaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
HideSoftInputOnTapped="True">
1212

1313
<Shell.TitleView>
14-
<Grid ColumnDefinitions="Auto,Auto,*,Auto,Auto, 8">
14+
<Grid ColumnDefinitions="Auto,Auto,*,Auto,Auto, 8">
1515
<Button
1616
WidthRequest="28" Padding="0"
1717
FontFamily="CrwMedia" Text="r" FontSize="36" TextColor="White"
@@ -30,7 +30,7 @@
3030
IsVisible="{Binding HasParent, Mode=OneWay}"
3131
BackgroundColor="Transparent"
3232
Command="{Binding GoHomeCommand, Mode=OneTime}" />
33-
<!-- glass -->
33+
<!-- glass -->
3434
<Button Grid.Column="4" WidthRequest="44" Padding="0"
3535
FontFamily="CrwMedia" Text="q"
3636
FontSize="42" TextColor="White"
@@ -39,26 +39,26 @@
3939
BackgroundColor="Transparent"
4040
Command="{Binding ShowSearchCommand, Mode=OneTime}"
4141
IsVisible="{Binding CanSearch, Mode=OneWay}">
42-
</Button>
43-
</Grid>
44-
</Shell.TitleView>
42+
</Button>
43+
</Grid>
44+
</Shell.TitleView>
4545

46-
<ContentPage.Resources>
46+
<ContentPage.Resources>
4747
<DataTemplate x:Key="SinglelineTemplate" x:DataType="vm:MusicContentEntryViewModel">
4848
<contentViews:SinglelineMusicContentEntry />
49-
</DataTemplate>
49+
</DataTemplate>
5050

5151
<DataTemplate x:Key="MultilineTemplate" x:DataType="vm:MusicContentEntryViewModel">
5252
<contentViews:MultilineMusicContentEntry />
5353
</DataTemplate>
54-
<controls:ItemsListViewMultilineTemplateSelector x:Key="MultilineSelector" Singleline="{StaticResource SinglelineTemplate}" Multiline="{StaticResource MultilineTemplate}" />
55-
</ContentPage.Resources>
54+
<controls:ItemsListViewMultilineTemplateSelector x:Key="MultilineSelector" Singleline="{StaticResource SinglelineTemplate}" Multiline="{StaticResource MultilineTemplate}" />
55+
</ContentPage.Resources>
5656

57-
<RefreshView Command="{Binding LoadDataCommand, Mode=OneTime}" IsRefreshing="{Binding IsBusy, Mode=TwoWay}">
58-
<VerticalStackLayout>
59-
<!-- search -->
57+
<RefreshView Command="{Binding LoadDataCommand, Mode=OneTime}" IsRefreshing="{Binding IsBusy, Mode=TwoWay}">
58+
<Grid RowDefinitions="auto,*">
59+
<!-- search -->
6060
<Grid ColumnDefinitions="*,Auto" IsVisible="{Binding IsSearching, Mode=OneWay}" BackgroundColor="Black" Padding="8">
61-
<SearchBar x:Name="searchBar"
61+
<SearchBar x:Name="searchBar"
6262
TextColor="White"
6363
SearchCommand="{Binding SearchCommand, Mode=OneTime}"
6464
SearchCommandParameter="{Binding Text, Source={x:Reference searchBar}}"/>
@@ -68,20 +68,20 @@
6868
BackgroundColor="Transparent"
6969
Command="{Binding HideSearchCommand, Mode=OneTime}"/>
7070
</Grid>
71-
<!-- browse -->
72-
<Grid Style="{StaticResource Body}" RowDefinitions="Auto,*">
73-
<CollectionView Grid.Row="1" ItemsSource="{Binding Categories, Mode=OneWay}"
71+
<!-- browse -->
72+
<Grid Grid.Row="1" Style="{StaticResource Body}" RowDefinitions="Auto,*">
73+
<CollectionView Grid.Row="1" ItemsSource="{Binding Categories, Mode=OneWay}"
7474
SelectionMode="None" IsGrouped="True"
7575
ItemTemplate="{StaticResource MultilineSelector}"
7676
RemainingItemsThreshold="5"
7777
RemainingItemsThresholdReachedCommand="{Binding GetMoreItemsCommand, Mode=OneTime}">
78-
<CollectionView.GroupHeaderTemplate>
79-
<DataTemplate x:DataType="vm:MusicContentCategoryViewModel">
80-
<Label Text="{Binding Name, Mode=OneTime}" Style="{DynamicResource ListHeaderTextStyle}" />
81-
</DataTemplate>
82-
</CollectionView.GroupHeaderTemplate>
83-
</CollectionView>
78+
<CollectionView.GroupHeaderTemplate>
79+
<DataTemplate x:DataType="vm:MusicContentCategoryViewModel">
80+
<Label Text="{Binding Name, Mode=OneTime}" Style="{DynamicResource ListHeaderTextStyle}" />
81+
</DataTemplate>
82+
</CollectionView.GroupHeaderTemplate>
83+
</CollectionView>
84+
</Grid>
8485
</Grid>
85-
</VerticalStackLayout>
86-
</RefreshView>
86+
</RefreshView>
8787
</views:BaseContentPage>

0 commit comments

Comments
 (0)