egorozh / Tabalonia

Draggable tab items on Avalonia here!
MIT License
178 stars 8 forks source link

Empty zone #19

Closed BelousovSL closed 2 months ago

BelousovSL commented 2 months ago

Hi, thanks for the good control. However, there is one question, I am very new, most likely I am doing something wrong. In the test example, I have a certain unfilled area. I'm attaching a screenshot.

Thank you. TabaloniaQuestion

egorozh commented 2 months ago

Hi!

I just didn't support Linux)

public static readonly StyledProperty<double> LeftThumbWidthProperty =
        AvaloniaProperty.Register<TabsControl, double>(nameof(LeftThumbWidth),
            defaultValue: OperatingSystem.IsWindows()
                ? WindowsDefaultLeftThumbWidth
                : MacOsDefaultLeftThumbWidth);

You can override the LeftThumbWidth parameter for the Tabcontrol:

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();

        this.Find<TabsControl>("TabsControl")!.LeftThumbWidth = OperatingSystem.IsMacOS() ? 80 : 4;
    }
}

In the next version, I will correct this point - I will indent it as in Windows.

BelousovSL commented 2 months ago

Yes, that's what I needed. I will try to integrate your control into my project. Thank you.