Coder Social home page Coder Social logo

udaraalwis / xfsegmentedcontrol Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 5.0 9.03 MB

Segmented Button Control in pure Xamarin.Forms!

Home Page: https://theconfuzedsourcecode.wordpress.com/tag/segmented-control/

License: GNU General Public License v3.0

C# 100.00%
xamarin xamarin-forms segmentedcontrol segmented-button-control tabbed-button-control

xfsegmentedcontrol's People

Contributors

udaraalwis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xfsegmentedcontrol's Issues

Xamarin forms 4.4.0 gives layout issues on Android

There is a layout issue if you update the Android/Xamarin Forms libraries like shown in the screenshot below:
afbeelding

Then the visibility of the label/horizontal view isn't set correctly anymore when you use the tab button. It is still working if you set the SelectedTabIndex (so dont use the button).

Screenshots
Screenshot_2020-01-06-16-43-05-673_com companyname XFSegmentedControl

Screenshot_2020-01-06-16-42-55-362_com companyname XFSegmentedControl

Screenshot_2020-01-06-16-43-10-844_com companyname XFSegmentedControl

[Request] Same style on Android like on iOS

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

iOS 13 style?

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?

Transparent background

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.

TabButton.Text issue

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>

Result:
WORKS

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>

Result:
DONT WORKS

Great

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.