4 changed files with 46 additions and 0 deletions
@ -0,0 +1,21 @@ |
|||
<UserControl xmlns="https://github.com/perspex"> |
|||
<StackPanel Orientation="Vertical" Gap="4"> |
|||
<TextBlock Classes="h1">Slider</TextBlock> |
|||
<TextBlock Classes="h2">A control that lets the user select from a range of values by moving a Thumb control along a Track.</TextBlock> |
|||
|
|||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0 16 0 0" Gap="16"> |
|||
<Slider Value="0" |
|||
Minimum="0" |
|||
Maximum="100" |
|||
Width="300"/> |
|||
<Slider Value="0" |
|||
Minimum="0" |
|||
Maximum="100" |
|||
Orientation="Vertical" |
|||
IsSnapToTickEnabled="True" |
|||
TickFrequency="10" |
|||
Height="300"/> |
|||
</StackPanel> |
|||
|
|||
</StackPanel> |
|||
</UserControl> |
|||
@ -0,0 +1,18 @@ |
|||
using Perspex.Controls; |
|||
using Perspex.Markup.Xaml; |
|||
|
|||
namespace ControlCatalog.Pages |
|||
{ |
|||
public class SliderPage : UserControl |
|||
{ |
|||
public SliderPage() |
|||
{ |
|||
this.InitializeComponent(); |
|||
} |
|||
|
|||
private void InitializeComponent() |
|||
{ |
|||
PerspexXamlLoader.Load(this); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue