Skip to content
New issue

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Maui.Switch #138

Open
Strypper opened this issue May 26, 2023 · 1 comment
Open

馃殌 Maui.Switch #138

Strypper opened this issue May 26, 2023 · 1 comment
Assignees
Labels
built-in 馃З Already in the framework community 馃 Controls or libraries that came from github community effort/medium Medium amount of work, 4h to 16h action level/normal 馃檪 In comfort zone, little research and may require using built-in features, but no RnD new feature 馃殌 New feature addition

Comments

@Strypper
Copy link
Owner

Strypper commented May 26, 2023

Preview

Original Link

License: MIT
Build
FOSSA Status
Codacy Badge

This is a switch/ toggle control that would allow you to create any style switch you'd like.

This component is built on top/of this great library - https://github.com/Phenek/Global.InputForms. Fixes a few issues, adds more options for styling, and improved accessibility.

Take a look at the demo app included in this project -

Public API Changes

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="App.MainPage"
             xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:controls="clr-namespace:App.Controls;assembly=App"
             Padding="{StaticResource PagePadding}">
    <ContentPage.Content>
        <VerticalStackLayout Spacing="20" VerticalOptions="Center">
            <controls:CustomButton Clicked="CustomSwitchBtn_Clicked" Text="CustomSwitch examples" />
            <controls:CustomButton Clicked="SwitchViewBtn_Clicked" Text="SwitchView examples" />
            <controls:CustomButton Clicked="AccessibilityBtn_Clicked" Text="Accessiblity tests" />
            <controls:CustomButton Clicked="PanGestureBtn_Clicked" Text="PanGesture tests" />
        </VerticalStackLayout>
    </ContentPage.Content>
</ContentPage>

Intended Use-Case

Replace the boring built-in MAUI toggle switch for better UI and customizations.

@Strypper Strypper self-assigned this May 26, 2023
@Strypper Strypper added level/easy 馃ぉ new feature 馃殌 New feature addition built-in 馃З Already in the framework toolkit 馃О Related to the CommunityToolkit MVVM level/normal 馃檪 In comfort zone, little research and may require using built-in features, but no RnD community 馃 Controls or libraries that came from github community effort/medium Medium amount of work, 4h to 16h action and removed level/easy 馃ぉ toolkit 馃О Related to the CommunityToolkit MVVM labels May 26, 2023
@Strypper
Copy link
Owner Author

git fetch origin
git checkout 138-feature-add-mauiswitch

Strypper added a commit that referenced this issue Jun 30, 2023
@IeuanWalker IeuanWalker self-assigned this Jun 30, 2023
@Strypper Strypper changed the title [Feature]: Add Maui.Switch 馃殌 Maui.Switch Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
built-in 馃З Already in the framework community 馃 Controls or libraries that came from github community effort/medium Medium amount of work, 4h to 16h action level/normal 馃檪 In comfort zone, little research and may require using built-in features, but no RnD new feature 馃殌 New feature addition
Projects
Status: In Progress
Development

No branches or pull requests

2 participants