Vapolia.SegmentedViews 1.0.0-ci8016228389

Prefix Reserved
This is a prerelease version of Vapolia.SegmentedViews.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Vapolia.SegmentedViews --version 1.0.0-ci8016228389
                    
NuGet\Install-Package Vapolia.SegmentedViews -Version 1.0.0-ci8016228389
                    
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="Vapolia.SegmentedViews" Version="1.0.0-ci8016228389" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vapolia.SegmentedViews" Version="1.0.0-ci8016228389" />
                    
Directory.Packages.props
<PackageReference Include="Vapolia.SegmentedViews" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vapolia.SegmentedViews --version 1.0.0-ci8016228389
                    
#r "nuget: Vapolia.SegmentedViews, 1.0.0-ci8016228389"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vapolia.SegmentedViews@1.0.0-ci8016228389
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vapolia.SegmentedViews&version=1.0.0-ci8016228389&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Vapolia.SegmentedViews&version=1.0.0-ci8016228389&prerelease
                    
Install as a Cake Tool

SegmentedViews

Platforms:

  • Android
  • iOS

Supports both static segments and ItemsSource to build segments dynamically.

Quick start

Add the above nuget package to your Maui project
then add this line to your maui app builder:

using Vapolia.SegmentedViews;
...
builder.UseSegmentedView();

Examples

See the SampleApp in this repo.

image

Declare the namespace:

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
         ...
         xmlns:segmented="https://vapolia.eu/Vapolia.SegmentedViews">

Add a static segment view:

<segmented:SegmentedView  
    x:Name="TheSegmentView"
    SelectedIndex="0"
    SelectedTextColor="White" TextColor="Black" TintColor="Blue" DisabledColor="LightGray"
    SelectionChangedCommand="{Binding SegmentSelectionChangedCommand}"
    SelectedItem="{Binding SegmentSelectedItem}">
    
    <segmented:Segment Item="Item1" />
    <segmented:Segment Item="Item2" />
    <segmented:Segment Item="Item3" />
    <segmented:Segment Item="Item4" />
    <segmented:Segment Item="{Binding Item5Title}" />
    
</segmented:SegmentedView>

Or a dynamic segment view:

        <segmented:SegmentedView
            ItemsSource="{Binding Persons}"
            TextPropertyName="LastName"
            SelectedIndex="0"
            SelectedItem="{Binding SegmentSelectedItem}"
            SelectedTextColor="White" TextColor="Black" TintColor="Blue" DisabledColor="LightGray"
            SelectionChangedCommand="{Binding SegmentSelectionChangedCommand}" />
Product Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net8.0-ios17.2 is compatible.  net9.0-android was computed.  net9.0-ios was computed.  net10.0-android was computed.  net10.0-ios was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.6 653 8/27/2024
1.0.5 160 8/15/2024
1.0.4 433 4/15/2024
1.0.3 154 3/31/2024
1.0.2 151 3/16/2024
1.0.1 153 3/14/2024
1.0.0 168 3/5/2024
1.0.0-ci8141352883 129 3/4/2024
1.0.0-ci8139282302 105 3/4/2024
1.0.0-ci8113045545 127 3/1/2024
1.0.0-ci8016228389 127 2/23/2024

1.0.0: Initial release