aboutsummaryrefslogtreecommitdiff
path: root/Views/MainWindow.axaml
blob: d580753398a1d2857fb7005082b08f8c44839c40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="using:Erable.ViewModels"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
        x:Class="Erable.Views.MainWindow"
        Icon="/Assets/avalonia-logo.ico"
        Title="Erable Audio Player">

    <Design.DataContext>
        <vm:MainWindowViewModel/>
    </Design.DataContext>
    <StackPanel>
        <TextBlock Text="{Binding Greeting}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
        <Button Name="PlayButton" Width="80" Command="{Binding PlayFunction}" >Play</Button>
        <Button Name="StopButton" Width="80" >Stop</Button>
        <Button Name="BrowseButton" Width="80" Command="{Binding BrowseFunction }" >Browse</Button>
    </StackPanel>
</Window>