added buttons for play list

This commit is contained in:
2026-08-15 17:59:49 +02:00
parent 716d39d117
commit 569f436789
2 changed files with 65 additions and 39 deletions
+8
View File
@@ -81,4 +81,12 @@
</Page> </Page>
</ItemGroup> </ItemGroup>
<ItemGroup>
<EditorConfigFiles Remove="D:\work\Harmony\HarmonyWinUI\.editorconfig" />
</ItemGroup>
<ItemGroup>
<None Include="D:\work\Harmony\HarmonyWinUI\.editorconfig" />
</ItemGroup>
</Project> </Project>
+56 -38
View File
@@ -60,44 +60,62 @@
ResizeDirection="Columns" ResizeDirection="Columns"
ResizeBehavior="PreviousAndNext" /> ResizeBehavior="PreviousAndNext" />
<ListView <Grid Grid.Column="2">
Grid.Column="2" <Grid.RowDefinitions>
SelectionMode="Single" <RowDefinition Height="Auto"/>
ItemsSource="{x:Bind Items}"> <RowDefinition Height="*"/>
<ListView.ItemTemplate> </Grid.RowDefinitions>
<DataTemplate x:DataType="local:PlayListItem">
<Grid> <CommandBar
<Grid.RowDefinitions> Background="Transparent"
<RowDefinition Height="*"/> IsOpen="False"
<RowDefinition Height="*"/> DefaultLabelPosition="Right"
</Grid.RowDefinitions> HorizontalAlignment="Left">
<Grid.ColumnDefinitions> <AppBarButton Icon="OpenFile" Label="Open"/>
<ColumnDefinition Width="Auto"/> <AppBarButton Icon="Save" Label="Save"/>
<ColumnDefinition Width="*"/> <AppBarButton Icon="Delete" Label="Delete"/>
</Grid.ColumnDefinitions> </CommandBar>
<Ellipse x:Name="Ellipse"
Grid.RowSpan="2" <ListView
Width ="32" Grid.Row="1"
Height="32" SelectionMode="Single"
Margin="6" ItemsSource="{x:Bind Items}">
VerticalAlignment="Center" <ListView.ItemTemplate>
HorizontalAlignment="Center" <DataTemplate x:DataType="local:PlayListItem">
Fill="{ThemeResource SystemControlBackgroundBaseMediumBrush}"/> <Grid>
<TextBlock Grid.Column="1" <Grid.RowDefinitions>
Text="{x:Bind TrackName}" <RowDefinition Height="*"/>
x:Phase="1" <RowDefinition Height="*"/>
Style="{ThemeResource BaseTextBlockStyle}" </Grid.RowDefinitions>
Margin="12,6,0,0"/> <Grid.ColumnDefinitions>
<TextBlock Grid.Column="1" <ColumnDefinition Width="Auto"/>
Grid.Row="1" <ColumnDefinition Width="*"/>
Text="{x:Bind ArtistName}" </Grid.ColumnDefinitions>
x:Phase="2" <Ellipse x:Name="Ellipse"
Style="{ThemeResource BodyTextBlockStyle}" Grid.RowSpan="2"
Margin="12,0,0,6"/> Width ="32"
</Grid> Height="32"
</DataTemplate> Margin="6"
</ListView.ItemTemplate> VerticalAlignment="Center"
</ListView> HorizontalAlignment="Center"
Fill="{ThemeResource SystemControlBackgroundBaseMediumBrush}"/>
<TextBlock Grid.Column="1"
Text="{x:Bind TrackName}"
x:Phase="1"
Style="{ThemeResource BaseTextBlockStyle}"
Margin="12,6,0,0"/>
<TextBlock Grid.Column="1"
Grid.Row="1"
Text="{x:Bind ArtistName}"
x:Phase="2"
Style="{ThemeResource BodyTextBlockStyle}"
Margin="12,0,0,6"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>