// Portions of this source file are adapted from the Windows Presentation Foundation project. // (https://github.com/dotnet/wpf/) // // Licensed to The Avalonia Project under MIT License, courtesy of The .NET Foundation. using System; using Avalonia.Input; using Avalonia.Layout; using Avalonia.Metadata; using Avalonia.Utilities; namespace Avalonia.Controls.Primitives { public class Track : Control { public static readonly DirectProperty MinimumProperty = RangeBase.MinimumProperty.AddOwner(o => o.Minimum, (o, v) => o.Minimum = v); public static readonly DirectProperty MaximumProperty = RangeBase.MaximumProperty.AddOwner(o => o.Maximum, (o, v) => o.Maximum = v); public static readonly DirectProperty ValueProperty = RangeBase.ValueProperty.AddOwner(o => o.Value, (o, v) => o.Value = v); public static readonly StyledProperty ViewportSizeProperty = ScrollBar.ViewportSizeProperty.AddOwner(); public static readonly StyledProperty OrientationProperty = ScrollBar.OrientationProperty.AddOwner(); public static readonly StyledProperty ThumbProperty = AvaloniaProperty.Register(nameof(Thumb)); public static readonly StyledProperty