|
1 |
| -<Window xmlns="https://github.com/avaloniaui" |
2 |
| - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 |
| - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
4 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
| - xmlns:viewModels="clr-namespace:MSUScripter.ViewModels" |
6 |
| - xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"xmlns:controls="using:AvaloniaControls.Controls" |
7 |
| - mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450" |
8 |
| - Width="768" Height="1024" |
9 |
| - x:Class="MSUScripter.Views.AudioAnalysisWindow" |
10 |
| - Title="Audio Analysis - MSU Scripter" |
11 |
| - x:DataType="viewModels:AudioAnalysisViewModel" |
12 |
| - Loaded="Control_OnLoaded" |
13 |
| - Unloaded="Control_OnUnloaded" |
14 |
| - WindowStartupLocation="CenterOwner" |
15 |
| - Icon="/Assets/MSUScripterIcon.ico" |
16 |
| - > |
17 |
| - <LayoutTransformControl Name="MainLayout"> |
18 |
| - <DockPanel> |
19 |
| - <ProgressBar Name="MsuPcmProgressBar" DockPanel.Dock="Top" |
20 |
| - Minimum="0" |
21 |
| - Maximum="{Binding TotalSongs}" |
22 |
| - Value="{Binding SongsCompleted}"></ProgressBar> |
23 |
| - <controls:HeaderFooter DockPanel.Dock="Bottom"> |
24 |
| - <Grid ColumnDefinitions="Auto, *"> |
25 |
| - <Button Margin="5" Click="CompareButton_OnClick" IsVisible="{Binding ShowCompareButton}" IsEnabled="{Binding CompareEnabled}"> |
26 |
| - Compare to Other MSU |
27 |
| - </Button> |
28 |
| - <TextBlock Grid.Column="2" Text="{Binding BottomBar}" TextAlignment="Right" VerticalAlignment="Center" Margin="5" /> |
29 |
| - </Grid> |
30 |
| - </controls:HeaderFooter> |
31 |
| - |
32 |
| - <DataGrid Name="AudioDataGrid" |
33 |
| - ItemsSource="{Binding Rows}" |
34 |
| - AutoGenerateColumns="False" |
35 |
| - CanUserReorderColumns="False" |
36 |
| - CanUserResizeColumns="True" |
37 |
| - IsReadOnly="True" |
38 |
| - RowBackground="{DynamicResource CardBackground}" |
39 |
| - SelectionMode="Single" |
40 |
| - BorderThickness="0" |
41 |
| - > |
42 |
| - <DataGrid.Columns> |
43 |
| - <DataGridTemplateColumn Header=""> |
44 |
| - <DataGridTemplateColumn.CellTemplate> |
45 |
| - <DataTemplate> |
46 |
| - <Button Name="RefreshSongButton" |
47 |
| - Tag="{Binding}" |
48 |
| - IsEnabled="{Binding HasLoaded}" |
49 |
| - IsVisible="{Binding CanRefresh}" |
50 |
| - Click="RefreshSongButton_OnClick"> |
51 |
| - <avalonia:MaterialIcon Kind="Refresh" ></avalonia:MaterialIcon> |
52 |
| - </Button> |
53 |
| - </DataTemplate> |
54 |
| - </DataGridTemplateColumn.CellTemplate> |
55 |
| - </DataGridTemplateColumn> |
56 |
| - <DataGridTemplateColumn Header=""> |
57 |
| - <DataGridTemplateColumn.CellTemplate> |
58 |
| - <DataTemplate> |
59 |
| - <avalonia:MaterialIcon Kind="Alert" |
60 |
| - Foreground="Goldenrod" |
61 |
| - IsVisible="{Binding HasWarning}" |
62 |
| - ToolTip.Tip="{Binding WarningMessage}" |
63 |
| - ></avalonia:MaterialIcon> |
64 |
| - </DataTemplate> |
65 |
| - </DataGridTemplateColumn.CellTemplate> |
66 |
| - </DataGridTemplateColumn> |
67 |
| - <DataGridTextColumn Header="Track" Binding="{Binding TrackNumber}"/> |
68 |
| - <DataGridTextColumn Header="Track Name" Binding="{Binding TrackName}"/> |
69 |
| - <DataGridTextColumn Header="File" Binding="{Binding SongName}"/> |
70 |
| - <DataGridTextColumn Header="Average Volume" Binding="{Binding AvgDecibals}"/> |
71 |
| - <DataGridTextColumn Header="Peak Volume" Binding="{Binding MaxDecibals}"/> |
72 |
| - </DataGrid.Columns> |
73 |
| - </DataGrid> |
74 |
| - </DockPanel> |
75 |
| - </LayoutTransformControl> |
76 |
| -</Window> |
| 1 | +<Window xmlns="https://github.com/avaloniaui" |
| 2 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:viewModels="clr-namespace:MSUScripter.ViewModels" |
| 6 | + xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia" |
| 7 | +xmlns:controls="using:AvaloniaControls.Controls" |
| 8 | + mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450" |
| 9 | + Width="768" Height="1024" |
| 10 | + x:Class="MSUScripter.Views.AudioAnalysisWindow" |
| 11 | + Title="Audio Analysis - MSU Scripter" |
| 12 | + x:DataType="viewModels:AudioAnalysisViewModel" |
| 13 | + Loaded="Control_OnLoaded" |
| 14 | + Unloaded="Control_OnUnloaded" |
| 15 | + WindowStartupLocation="CenterOwner" |
| 16 | + Icon="/Assets/MSUScripterIcon.ico" |
| 17 | + > |
| 18 | + <LayoutTransformControl Name="MainLayout"> |
| 19 | + <DockPanel> |
| 20 | + <ProgressBar Name="MsuPcmProgressBar" DockPanel.Dock="Top" |
| 21 | + Minimum="0" |
| 22 | + Maximum="{Binding TotalSongs}" |
| 23 | + Value="{Binding SongsCompleted}"></ProgressBar> |
| 24 | + <controls:HeaderFooter DockPanel.Dock="Bottom"> |
| 25 | + <Grid ColumnDefinitions="Auto, *"> |
| 26 | + <Button Margin="5" Click="CompareButton_OnClick" IsVisible="{Binding ShowCompareButton}" IsEnabled="{Binding CompareEnabled}"> |
| 27 | + Compare to Other MSU |
| 28 | + </Button> |
| 29 | + <TextBlock Grid.Column="2" Text="{Binding BottomBar}" TextAlignment="Right" VerticalAlignment="Center" Margin="5" /> |
| 30 | + </Grid> |
| 31 | + </controls:HeaderFooter> |
| 32 | + |
| 33 | + <DataGrid Name="AudioDataGrid" |
| 34 | + ItemsSource="{Binding Rows}" |
| 35 | + AutoGenerateColumns="False" |
| 36 | + CanUserReorderColumns="False" |
| 37 | + CanUserResizeColumns="True" |
| 38 | + IsReadOnly="True" |
| 39 | + RowBackground="{DynamicResource CardBackground}" |
| 40 | + SelectionMode="Single" |
| 41 | + BorderThickness="0" |
| 42 | + > |
| 43 | + <DataGrid.Columns> |
| 44 | + <DataGridTemplateColumn Header=""> |
| 45 | + <DataGridTemplateColumn.CellTemplate> |
| 46 | + <DataTemplate> |
| 47 | + <Button Name="RefreshSongButton" |
| 48 | + Tag="{Binding}" |
| 49 | + IsEnabled="{Binding HasLoaded}" |
| 50 | + IsVisible="{Binding CanRefresh}" |
| 51 | + Click="RefreshSongButton_OnClick"> |
| 52 | + <avalonia:MaterialIcon Kind="Refresh" ></avalonia:MaterialIcon> |
| 53 | + </Button> |
| 54 | + </DataTemplate> |
| 55 | + </DataGridTemplateColumn.CellTemplate> |
| 56 | + </DataGridTemplateColumn> |
| 57 | + <DataGridTemplateColumn Header=""> |
| 58 | + <DataGridTemplateColumn.CellTemplate> |
| 59 | + <DataTemplate> |
| 60 | + <avalonia:MaterialIcon Kind="Alert" |
| 61 | + Foreground="Goldenrod" |
| 62 | + IsVisible="{Binding HasWarning}" |
| 63 | + ToolTip.Tip="{Binding WarningMessage}" |
| 64 | + ></avalonia:MaterialIcon> |
| 65 | + </DataTemplate> |
| 66 | + </DataGridTemplateColumn.CellTemplate> |
| 67 | + </DataGridTemplateColumn> |
| 68 | + <DataGridTextColumn Header="Track" Binding="{Binding TrackNumber}"/> |
| 69 | + <DataGridTextColumn Header="Track Name" Binding="{Binding TrackName}"/> |
| 70 | + <DataGridTextColumn Header="File" Binding="{Binding SongName}"/> |
| 71 | + <DataGridTextColumn Header="Average Volume" Binding="{Binding AvgDecibels}"/> |
| 72 | + <DataGridTextColumn Header="Peak Volume" Binding="{Binding MaxDecibels}"/> |
| 73 | + </DataGrid.Columns> |
| 74 | + </DataGrid> |
| 75 | + </DockPanel> |
| 76 | + </LayoutTransformControl> |
| 77 | +</Window> |
0 commit comments