Browse Source

designer preview for slider has horizontal and vertical sliders.

feature/fluent-slider
Dan Walmsley 6 years ago
parent
commit
c144810168
  1. 16
      src/Avalonia.Themes.Fluent/Slider.xaml

16
src/Avalonia.Themes.Fluent/Slider.xaml

@ -1,10 +1,16 @@
<Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Styles xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Design.PreviewWith> <Design.PreviewWith>
<Border Margin="20" Width="200"> <Border Margin="20" Width="200" Height="200">
<StackPanel Spacing="10"> <DockPanel LastChildFill="True">
<Slider Value="50" /> <StackPanel Spacing="10" DockPanel.Dock="Top">
<Slider IsEnabled="False" Value="50" /> <Slider Value="50" />
</StackPanel> <Slider IsEnabled="False" Value="50" />
</StackPanel>
<StackPanel Spacing="10" Orientation="Horizontal">
<Slider Value="50" Orientation="Vertical" />
<Slider IsEnabled="False" Orientation="Vertical" Value="50" />
</StackPanel>
</DockPanel>
</Border> </Border>
</Design.PreviewWith> </Design.PreviewWith>
<Styles.Resources> <Styles.Resources>

Loading…
Cancel
Save