feat: initialize WPF project with WPF UI
Add the Radiosender solution on .NET 10 with the WPF-UI 4.3.0 package. The main window is a FluentWindow with a title bar and a NavigationView that opens a home page. Models, Controllers and Services folders hold the MVC structure for the next issues. Replace the GitLab template README with build instructions. Refs #1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
145fc13f31
commit
910709fe26
14 files changed
+610
-84
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<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:NavigationView.MenuItems>
|
||||
</ui:NavigationView>
|
||||
</Grid>
|
||||
</ui:FluentWindow>
|
||||
@@ -0,0 +1,13 @@
|
||||
using Radiosender.Views.Pages;
|
||||
using Wpf.Ui.Controls;
|
||||
|
||||
namespace Radiosender.Views;
|
||||
|
||||
public partial class MainWindow : FluentWindow
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
Loaded += (_, _) => RootNavigation.Navigate(typeof(HomePage));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<Page x:Class="Radiosender.Views.Pages.HomePage"
|
||||
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"
|
||||
Title="Home">
|
||||
<StackPanel Margin="24">
|
||||
<ui:TextBlock FontTypography="Title" Text="Radiosender" />
|
||||
<ui:TextBlock Margin="0,8,0,0" Text="Schedule, library and playback will appear here." />
|
||||
</StackPanel>
|
||||
</Page>
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace Radiosender.Views.Pages;
|
||||
|
||||
public partial class HomePage : Page
|
||||
{
|
||||
public HomePage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user