Got WPF version work
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:local="clr-namespace:TV_Player.MAUI"
|
||||
x:Class="TV_Player.MAUI.ProgramPage">
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout
|
||||
Padding="30,0"
|
||||
VerticalOptions="Center">
|
||||
|
||||
<CollectionView ItemsSource="{Binding Programs}"
|
||||
ItemsLayout="VerticalGrid, 5" SelectionMode="Single"
|
||||
SelectedItem="{Binding SelectedItem}"
|
||||
SelectionChangedCommand="{Binding ItemSelectedCommand}">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate x:DataType="local:M3UInfo">
|
||||
<VerticalStackLayout>
|
||||
<Image Source="{Binding Logo}" WidthRequest="50" HeightRequest="50"/>
|
||||
<Label Text="{Binding Name}" HorizontalTextAlignment="Center"/>
|
||||
</VerticalStackLayout>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user