We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On android, the tabs are not filling the whole container.
In the image below, the background color of the SegmentedControl is made yellow.
But the tabs are not fully extended to the size of the container. Any idea why ?
<ContentPage x:Class="MauiApp1.Views.MainPage" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:d="http://schemas.microsoft.com/dotnet/2021/maui/design" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:segmentedControl="clr-namespace:Plugin.Maui.SegmentedControl;assembly=Plugin.Maui.SegmentedControl" Title="MauiApp1" BackgroundColor="Wheat" mc:Ignorable="d"> <VerticalStackLayout BackgroundColor="Red"> <Label Text="Bonjour" HorizontalOptions="Fill" BackgroundColor="LightGreen" /> <segmentedControl:SegmentedControl TintColor="#007AFF" SelectedSegment="0" HorizontalOptions="Fill" BackgroundColor="Yellow"> <segmentedControl:SegmentedControl.Children> <segmentedControl:SegmentedControlOption Text="Tab 1" /> <segmentedControl:SegmentedControlOption Text="Tab 2" /> <segmentedControl:SegmentedControlOption Text="Tab 3" /> <segmentedControl:SegmentedControlOption Text="Tab 4" /> </segmentedControl:SegmentedControl.Children> </segmentedControl:SegmentedControl> </VerticalStackLayout> </ContentPage>
The text was updated successfully, but these errors were encountered:
Hi @softlion As a workaround use please WidthRequest. I will take a look at this issue
Sorry, something went wrong.
@yurkinh @softlion - see this branch https://github.com/smalgin/Plugin.Maui.SegmentedControl/tree/smalgin/moreFunc
I added a minimal set of functionality to make a control actually usable beyond 'fixed set of tabs' use case.
TODO before I submit PR:
No branches or pull requests
On android, the tabs are not filling the whole container.
In the image below, the background color of the SegmentedControl is made yellow.
But the tabs are not fully extended to the size of the container. Any idea why ?
The text was updated successfully, but these errors were encountered: