udaraalwis / xfsegmentedcontrol Goto Github PK
View Code? Open in Web Editor NEWSegmented Button Control in pure Xamarin.Forms!
Home Page: https://theconfuzedsourcecode.wordpress.com/tag/segmented-control/
License: GNU General Public License v3.0
Segmented Button Control in pure Xamarin.Forms!
Home Page: https://theconfuzedsourcecode.wordpress.com/tag/segmented-control/
License: GNU General Public License v3.0
Hello Udara,
first of all, great Plugin! I really like that it's created from the Xamarin UI Objects!
Is it possible to mimic the same style on Android like on iOS?
I would really like to have the same style on Android.
Kind regards,
bluekuen
The following code is showing nothing under XF 4.8.0.1269 when using Visual=Material in the ContentPage
Tested under API30, 29 and on an S8+ (API28) - same result on all
The UISegmentedControl looks different now on iOS 13 (not just an outline frame but a solid background with some kind of slider/button for the active segment)
Is it possible to get this look for this control when compiled for the iOS13 (or higher) Plattform?
How about adding swipe gesture for changing active tab?
I added XFSegmentedControl to my project but I want the primary color of the control to be transparent so that the view underneath will be visible. However, when I set the primary color to transparant, it leaves a white background. This also happens when the backgroundcolor of the control is transparent. Ignoring primarycolor is also not an option as it sets a blue color as default.
on android, rendering the control fails on the new XF 4.0.0-pre10.1 release, like so:
on iOS it's fine; i did not test UWP.
looking through the commits for XF 4.0.0-pre10.1, there are new FastRenderers for Android as per:
and indeed, the control works fine with Forms.SetFlags("UseLegacyRenderers")
set in MainActivity
, so that is a good workaround for now.
It would be better for people to understand your library if you use that library in your sample project.
Hi,
if i put your segmentedcontrol inside a ScrollView, TabButton.Text is not visible (or has the same color of PrimaryColor .... i don't know)
XF version: latest 4.5.x
XAML that works:
<ContentPage.Content> <Grid> <StackLayout> <xfsc:SegmentedControl HorizontalOptions="CenterAndExpand" PrimaryColor="Red" SecondaryColor="Yellow" TabButtonsSource="{Binding MeasuresTypes}" VerticalOptions="CenterAndExpand" /> </StackLayout> </Grid> </ContentPage.Content>
XAML that dont works:
<ContentPage.Content> <Grid> <ScrollView> <StackLayout> <xfsc:SegmentedControl HorizontalOptions="CenterAndExpand" PrimaryColor="Red" SecondaryColor="Yellow" TabButtonsSource="{Binding MeasuresTypes}" VerticalOptions="CenterAndExpand" /> </StackLayout> </ScrollView> </Grid> </ContentPage.Content>
Hi i am loving to use this component great job , Please guide me is there any way to add image inside segment button.
Regards
Atif
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.