-
Notifications
You must be signed in to change notification settings - Fork 19
/
MainPage.xaml
42 lines (39 loc) · 1.35 KB
/
MainPage.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
<Page x:Class="AudioPlayer.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AudioPlayer"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Page.DataContext>
<local:MainModel />
</Page.DataContext>
<StackPanel
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBox Margin="12"
HorizontalAlignment="Center"
PlaceholderText="Audio File Name"
Text="{Binding FileName, Mode=TwoWay}"
TextAlignment="Center" />
<StackPanel Orientation="Horizontal">
<Button Margin="12"
HorizontalAlignment="Center"
Command="{Binding PlayCommand}"
Content="Play" />
<Button Margin="12"
HorizontalAlignment="Center"
Command="{Binding PauseCommand}"
IsEnabled="{Binding Playing}"
Content="Pause" />
<Button Margin="12"
HorizontalAlignment="Center"
Command="{Binding ResumeCommand}"
IsEnabled="{Binding Paused}"
Content="Resume" />
<Button Margin="12"
HorizontalAlignment="Center"
Command="{Binding ResumeCommand}"
IsEnabled="{Binding Playing}"
Content="Stop" />
</StackPanel>
</StackPanel>
</Page>