csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.3 KiB
62 lines
2.3 KiB
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:Class="ControlCatalog.Pages.NavigationPageTitlePage">
|
|
<DockPanel>
|
|
<ScrollViewer DockPanel.Dock="Right" Width="260">
|
|
<StackPanel Margin="12" Spacing="8">
|
|
|
|
<TextBlock Text="Set Header on Current Page" FontWeight="SemiBold" FontSize="13" />
|
|
<Button Content="String Header"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnSetStringHeader" />
|
|
<Button Content="Custom: Search Box"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnSetSearchHeader" />
|
|
<Button Content="Custom: Slider"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnSetSliderHeader" />
|
|
<Button Content="Custom: Icon + Subtitle"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnSetLayoutHeader" />
|
|
|
|
<Separator />
|
|
|
|
<TextBlock Text="Navigation" FontWeight="SemiBold" FontSize="13" />
|
|
<Button Content="Push with String Header"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnPushWithStringHeader" />
|
|
<Button Content="Push with Custom Header"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnPushWithCustomHeader" />
|
|
<Button Content="Pop"
|
|
HorizontalAlignment="Stretch"
|
|
Click="OnPop" />
|
|
|
|
<Separator />
|
|
|
|
<TextBlock Text="Status" FontWeight="SemiBold" FontSize="14" />
|
|
<TextBlock x:Name="StatusText"
|
|
Text="Current: Home"
|
|
Opacity="0.7"
|
|
TextWrapping="Wrap" />
|
|
|
|
<Separator />
|
|
|
|
<TextBlock Text="Page.Header is object. Set a string for a simple text label, or any control for a fully custom nav bar."
|
|
FontSize="12"
|
|
Opacity="0.7"
|
|
TextWrapping="Wrap" />
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
|
|
<Border DockPanel.Dock="Right" Width="1" Background="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" />
|
|
|
|
<Border Margin="12"
|
|
BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
|
|
BorderThickness="1"
|
|
CornerRadius="6"
|
|
ClipToBounds="True">
|
|
<NavigationPage x:Name="DemoNav" />
|
|
</Border>
|
|
</DockPanel>
|
|
</UserControl>
|
|
|