A cross-platform UI framework for .NET
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.
 
 
 

29 lines
622 B

using System.Collections.Generic;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
namespace ControlCatalog.Pages
{
public class SliderPage : UserControl
{
public SliderPage()
{
this.InitializeComponent();
}
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);
var slider = this.FindControl<Slider>("CustomTickedSlider");
slider.Ticks = new List<double>
{
0d,
5d,
20d,
50d,
100d
};
}
}
}