- Create ViewModels/Components/ and Views/Components/ folders - Extract LibrarySidebarView and LibrarySidebarViewModel from ShellView - Move LibraryItemViewModel to Components folder - Move GameItemViewModel to Components folder - Create GameBannerView component (not yet integrated) - Create PageHeaderView component (not yet integrated) - Simplify ShellView to use LibrarySidebarView component - Update GamesListView to reference Components namespace This improves code organization and makes it easier to navigate the codebase as the UI grows.
31 lines
1.3 KiB
XML
31 lines
1.3 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="LANCommander.Launcher.Avalonia.Views.Components.PageHeaderView">
|
|
|
|
<Border Padding="16" Background="{DynamicResource SystemControlBackgroundChromeMediumBrush}">
|
|
<DockPanel>
|
|
<!-- Back Button (optional) -->
|
|
<Button x:Name="BackButton"
|
|
DockPanel.Dock="Left"
|
|
Padding="12,8"
|
|
IsVisible="False" />
|
|
|
|
<!-- Actions (right side) -->
|
|
<StackPanel x:Name="ActionsPanel"
|
|
DockPanel.Dock="Right"
|
|
Orientation="Horizontal"
|
|
Spacing="8" />
|
|
|
|
<!-- Title and Subtitle -->
|
|
<StackPanel Margin="16,0,0,0" VerticalAlignment="Center">
|
|
<TextBlock x:Name="TitleText"
|
|
FontSize="20"
|
|
FontWeight="Bold" />
|
|
<TextBlock x:Name="SubtitleText"
|
|
Opacity="0.7"
|
|
FontSize="12"
|
|
IsVisible="False" />
|
|
</StackPanel>
|
|
</DockPanel>
|
|
</Border>
|
|
</UserControl>
|