using System;
using Avalonia;
using Avalonia.Markup.Xaml;

namespace InABox.Avalonia;

public class CornerRadiusProvider : MarkupExtension
{
    public double Left { get; set; }
    public double Top { get; set; }
    public double Right { get; set; }
    public double Bottom { get; set; }

    public override object ProvideValue(IServiceProvider serviceProvider)
    {
        return new CornerRadius(Left, Top, Right, Bottom);
    }
}