// Copyright (c) The Avalonia Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. using System; using Avalonia.Input; using Avalonia.Metadata; 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