794b4739b1
This gives view models more freedom in how play events from the player are handled
47 lines
1.7 KiB
XML
47 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ContentView
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
x:Class="Aurora.Design.Components.MediaPlayer.Player">
|
|
<ContentView.Content>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition
|
|
Width="100"/>
|
|
<ColumnDefinition
|
|
Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackLayout
|
|
Grid.Column="0">
|
|
<Label
|
|
x:Name="SongTitleLabel"
|
|
Text="{Binding SongTitle}"/>
|
|
<Label
|
|
x:Name="ArtistNameLabel"
|
|
Text="{Binding ArtistName}"/>
|
|
</StackLayout>
|
|
<StackLayout
|
|
Grid.Column="1"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Text="Previous"
|
|
x:Name="PreviousButton"
|
|
Command="{Binding PreviousCommand}"
|
|
WidthRequest="100"
|
|
HeightRequest="50"/>
|
|
<Button
|
|
x:Name="PlayButton"
|
|
Text="{Binding PlayButtonText}"
|
|
Command="{Binding PlayCommand}"
|
|
WidthRequest="100"
|
|
HeightRequest="50"/>
|
|
<Button
|
|
Text="Next"
|
|
x:Name="NextButton"
|
|
Command="{Binding NextCommand}"
|
|
WidthRequest="100"
|
|
HeightRequest="50"/>
|
|
</StackLayout>
|
|
</Grid>
|
|
</ContentView.Content>
|
|
</ContentView> |