chaosifier / TabView

TabView control for Xamarin.Forms.
MIT License
124 stars 32 forks source link

HeaderSelectionUnderlineWidth #4

Closed zaoky closed 6 years ago

zaoky commented 6 years ago

Hi, First thanks for this awesome control.

Now I want to have the HeaderSelectionUnderlineWidth that covers the whole tap section, I set as 100 but it doesn't change

this is what I want to achieve Image

is it possible ?

chaosifier commented 6 years ago

Thank you for your kind words. Yes, that's very much possible.

Replace https://github.com/chaosifier/TabView/blob/7d8faf918c296939471d04f2eb578e818d434803/Xam.Plugin.TabView/Xam.Plugin.TabView.cs#L193 with HorizontalOptions = LayoutOptions.FillAndExpand

And comment this line: https://github.com/chaosifier/TabView/blob/7d8faf918c296939471d04f2eb578e818d434803/Xam.Plugin.TabView/Xam.Plugin.TabView.cs#L201

I hope this helps.

zaoky commented 6 years ago

thanks for your answer. I am new on this, I have a quick question, can I use your control in XAML? I imported but it doesn't appear when I open the tag or it is an intelligence issue?

chaosifier commented 6 years ago

That'd be hard to do with the current version of the control. I'll be adding the feature in the next version.

zaoky commented 6 years ago

Thanks for your help, now it is working as I wanted :D

vishalpachori25 commented 5 years ago

Hi, TabItem.HeaderSelectionUnderlineWidth is not working when there are only two tabs and if you want to set the width to less than the length of the text. Something like this:- image