Files
Radio/src/Radiosender/Views/MainWindow.xaml
T
fraujulianandClaude Opus 5.5 faa1dc19cc feat: add music library page with search, edit and delete
Add a Library page reachable from the navigation. It lists all songs
from the SQLite database, filters them by title or artist, edits title,
artist, license and attribution in a dialog, and deletes a song after a
confirmation prompt. File path, duration and source stay read-only.

LibraryController wraps SongRepository so the view only forwards user
actions. Changes are written to the database immediately, and the list
reloads every time the page is shown.

Refs #3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 10:24:12 +01:00

32 lines
1.5 KiB
XML

<ui:FluentWindow x:Class="Radiosender.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
xmlns:pages="clr-namespace:Radiosender.Views.Pages"
Title="Radiosender"
Width="1100" Height="700"
MinWidth="800" MinHeight="500"
ExtendsContentIntoTitleBar="True"
WindowBackdropType="Mica"
WindowStartupLocation="CenterScreen">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ui:TitleBar Grid.Row="0" Title="Radiosender" />
<ui:NavigationView x:Name="RootNavigation" Grid.Row="1" IsBackButtonVisible="Collapsed">
<ui:NavigationView.MenuItems>
<ui:NavigationViewItem Content="Home"
Icon="{ui:SymbolIcon Home24}"
TargetPageType="{x:Type pages:HomePage}" />
<ui:NavigationViewItem Content="Library"
Icon="{ui:SymbolIcon MusicNote224}"
TargetPageType="{x:Type pages:LibraryPage}" />
</ui:NavigationView.MenuItems>
</ui:NavigationView>
</Grid>
</ui:FluentWindow>