ScrollableSegmentedControl 1.0.8715

dotnet add package ScrollableSegmentedControl --version 1.0.8715
NuGet\Install-Package ScrollableSegmentedControl -Version 1.0.8715
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ScrollableSegmentedControl" Version="1.0.8715" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ScrollableSegmentedControl --version 1.0.8715
#r "nuget: ScrollableSegmentedControl, 1.0.8715"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ScrollableSegmentedControl as a Cake Addin
#addin nuget:?package=ScrollableSegmentedControl&version=1.0.8715

// Install ScrollableSegmentedControl as a Cake Tool
#tool nuget:?package=ScrollableSegmentedControl&version=1.0.8715

ScrollableSegmentedControl

A drop-in replacement for UISegmentedControl mimicking the style of the segmented control used in Google Currents and various other Google products.

A C# port for Xamarin.iOS of HMSegmentedControl written by Hesham Abd-Elmegid (https://github.com/HeshamMegid/HMSegmentedControl).

Screenshot

ScrollableSegmentedControl

Usages

The easiest way to get started with using this is by installing the ScrollableSegmentedControl NuGet package to your Xamarin.iOS project

Here's an example of how to create the ScrollableSegmentedControl

private void CreateScrollableSegmentedControl()
{
    var sectionTitles = new[] { "One", "Two", "Three", "Four", "Five", "Six" };
    var segmentedControl = new ScrollableSegmentedControl(sectionTitles)
    {
        Font = UIFont.FromName("STHeitiSC-Light", 18.0f),
        Frame = new CGRect(0, 60, View.Frame.Width, 40),
        SegmentEdgeInset = new UIEdgeInsets(0, 10, 0, 10),
        SelectionStyle = ScrollableSegmentedControlSelectionStyle.FullWidthStripe,
        SelectionIndicatorLocation = ScrollableSegmentedControlIndicatorLocation.Down
    };
    View.AddSubview(segmentedControl);
}

Selection Indicator Position

enum ScrollableSegmentedControlIndicatorLocation
{
    Up,
    Down,
    None
}

Selection Style

enum ScrollableSegmentedControlSelectionStyle
{
    TextWidthStripe,
    FullWidthStripe,
    Box,
    Arrow
}

Segment Width Styles

enum ScrollableSegmentedControlWidthStyle
{
    Fixed,
    Dynamic
}

For tips and tricks on software development, check out my blog

If you find this useful and feel a bit generous then feel free to buy me a coffee 😃

Product Versions
Xamarin.iOS xamarinios10
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.8715 172 12/28/2021
1.0.8714 140 12/28/2021
1.0.8705 144 12/27/2021
1.0.2570 4,860 10/6/2020
1.0.1271 1,091 2/28/2020
1.0.625 460 6/13/2019
1.0.622 390 6/11/2019
1.0.621 429 6/9/2019
1.0.620 438 6/8/2019
1.0.619 454 6/8/2019
1.0.617 448 6/7/2019
1.0.616 433 6/7/2019
1.0.613 406 6/6/2019
1.0.612 407 6/6/2019
1.0.602 418 6/3/2019
1.0.601 419 6/3/2019