35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
![]() |
<UserControl
|
||
|
x:Class="Semi.Avalonia.Demo.Pages.PaletteDemo"
|
||
|
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="450"
|
||
|
d:DesignWidth="800"
|
||
|
mc:Ignorable="d">
|
||
|
<SplitView
|
||
|
CompactPaneLength="100"
|
||
|
DisplayMode="CompactInline"
|
||
|
IsPaneOpen="{Binding #toggle.IsChecked, Mode=TwoWay}"
|
||
|
OpenPaneLength="300"
|
||
|
PanePlacement="Right">
|
||
|
<SplitView.Pane>
|
||
|
<Border Theme="{DynamicResource CardBorder}">
|
||
|
<StackPanel>
|
||
|
<ToggleButton
|
||
|
Name="toggle"
|
||
|
HorizontalAlignment="Right"
|
||
|
Content="Detail" />
|
||
|
<TextBlock Text="Hello" />
|
||
|
</StackPanel>
|
||
|
</Border>
|
||
|
|
||
|
</SplitView.Pane>
|
||
|
<SplitView.Content>
|
||
|
<StackPanel>
|
||
|
<TextBlock Text="Content" />
|
||
|
</StackPanel>
|
||
|
</SplitView.Content>
|
||
|
</SplitView>
|
||
|
</UserControl>
|