mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-09 02:36:34 +08:00
* Initial plan * Implement Semi Design theme for ContentPage, DrawerPage, NavigationPage, TabbedPage Co-authored-by: zdpcdt <54255897+zdpcdt@users.noreply.github.com> * fix: bind ItemsSource to Pages in TabControl of TabbedPage. * chore: split demo navigation pages. * demo: improve NavigationPage demo pages with interactive controls Co-authored-by: zdpcdt <54255897+zdpcdt@users.noreply.github.com> * fix: use comma-separated Padding syntax and remove trailing newline Co-authored-by: zdpcdt <54255897+zdpcdt@users.noreply.github.com> * feat: implement semi design theme for navigation controls in demo pages. * feat: enhance demo pages with foreground color for better visibility * feat: add back button visibility control and improve navigation page layout. * chore: remove DrawerPage unused static resources. * feat: add HighContrast resources for ContentPage, DrawerPage, NavigationPage, TabbedPage Co-authored-by: zdpcdt <54255897+zdpcdt@users.noreply.github.com> * feat: implement CardTabbedPage & ButtonTabbedPage themes. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: zdpcdt <54255897+zdpcdt@users.noreply.github.com> Co-authored-by: Dong Bin <popmessiah@hotmail.com>
65 lines
2.7 KiB
XML
65 lines
2.7 KiB
XML
<UserControl
|
|
x:Class="Semi.Avalonia.Demo.Pages.NavigationPageDemo"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="700"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<ScrollViewer>
|
|
<DockPanel>
|
|
<ScrollViewer DockPanel.Dock="Right" Width="260">
|
|
<StackPanel Margin="12" Spacing="8">
|
|
<TextBlock Text="Configuration" FontWeight="SemiBold" FontSize="16" />
|
|
<TextBlock Text="Navigation" FontWeight="SemiBold" FontSize="13" />
|
|
|
|
<Button Content="Push Page"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnPush" />
|
|
<Button Content="Pop"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnPop" />
|
|
<Button Content="Pop to Root"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnPopToRoot" />
|
|
|
|
<Separator />
|
|
|
|
<TextBlock Text="Options" FontWeight="SemiBold" FontSize="14" />
|
|
|
|
<CheckBox Name="HasNavBarCheck"
|
|
Content="Has Navigation Bar"
|
|
IsChecked="True"
|
|
IsCheckedChanged="OnHasNavBarChanged" />
|
|
<CheckBox Name="HasBackButtonCheck"
|
|
Content="Has Back Button"
|
|
IsChecked="True"
|
|
IsCheckedChanged="OnHasBackButonChanged" />
|
|
|
|
<Separator />
|
|
|
|
<TextBlock Text="Status" FontWeight="SemiBold" FontSize="14" />
|
|
<TextBlock Name="StatusText"
|
|
Text="Depth: 1"
|
|
Opacity="0.7"
|
|
TextWrapping="Wrap" />
|
|
<TextBlock Name="HeaderText"
|
|
Text="Current: Home"
|
|
Opacity="0.7"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
|
|
<Border DockPanel.Dock="Right" Width="1" Background="{DynamicResource SemiColorBackground0}" />
|
|
|
|
<Border Margin="12"
|
|
BorderBrush="{DynamicResource SemiColorBorder}"
|
|
BorderThickness="1"
|
|
CornerRadius="6"
|
|
ClipToBounds="True">
|
|
<NavigationPage Name="DemoNav" />
|
|
</Border>
|
|
</DockPanel>
|
|
</ScrollViewer>
|
|
</UserControl> |