SukiStackPage.axaml 1.4 KB

1234567891011121314151617181920212223242526
  1. <ResourceDictionary xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:controls="clr-namespace:SukiUI.Controls">
  4. <ControlTheme x:Key="SukiStackPageStyle" TargetType="controls:SukiStackPage">
  5. <Setter Property="Template">
  6. <ControlTemplate>
  7. <DockPanel Margin="40,20">
  8. <StackPanel DockPanel.Dock="Top">
  9. <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">
  10. <StackPanel Name="StackHeader"
  11. HorizontalAlignment="Left"
  12. Orientation="Horizontal" />
  13. </ScrollViewer>
  14. <Border Height="1"
  15. Margin="0,-20,0,0"
  16. Background="{DynamicResource SukiControlBorderBrush}" />
  17. </StackPanel>
  18. <ContentPresenter Content="{TemplateBinding Content}" />
  19. </DockPanel>
  20. </ControlTemplate>
  21. </Setter>
  22. </ControlTheme>
  23. <ControlTheme x:Key="{x:Type controls:SukiStackPage}"
  24. BasedOn="{StaticResource SukiStackPageStyle}"
  25. TargetType="controls:SukiStackPage" />
  26. </ResourceDictionary>