Giter VIP home page Giter VIP logo

bottomsheetmaui's Introduction

Popup and BottomSheet Maui

Two very practical and easy to use components, a main component called Popup and another BottomSheet called Drawer that uses the system of the first one, a good integration that will make it easier to implement any element you want to add on the page.

  • 1 file
  • No Plugins
  • No Renders ou Handlers

if you only want to use the Popup Maui just copy the Popup.cs file and the magic happens, but if you want to use BootmSheet Maui just copy Drawer.cs and your BaseDrawer page.

How to use?

Create your Popup Maui

<?xml version="1.0" encoding="utf-8" ?>
<base:Popup  xmlns:base="clr-namespace:BottomSheet">
    <Grid>
        <VerticalStackLayout VerticalOptions="Center" HorizontalOptions="Center">
            //YOUR CONTENT
        </VerticalStackLayout>
    </Grid>
</base:Popup>

Open your Popup Maui

await Popup.Open(new SamplePopup());


Create your BottomSheet Maui

<?xml version="1.0" encoding="utf-8" ?>
<base:DrawerView  xmlns:base="clr-namespace:BottomSheet">
    <Grid>
        <VerticalStackLayout VerticalOptions="Center" HorizontalOptions="Center">
            //YOUR LIST
        </VerticalStackLayout>
    </Grid>
</base:DrawerView>

Open your BottomSheet Maui

await Drawer.Open(new MyListDrawerView());

And many more things to play with:

In file type of DrawerView ou type of Popup you can send a object callback:

CallBackReturn.Execute("hello");

In ViewModel or Page you resend this callback:

string teste = await Drawer.Open(new SampleDrawerView());
//or
string teste = await Popup.Open(new SamplePopup());

And also you can make several customizations in your popup file:

public async override Task BeforeOpen()
public async override Task AfterOpen()
public async override Task BeforeClose()
public async override Task AfterClose()

And also you can block the background:

IsCloseOnBackgroundClick = false;

And make all kinds of pages that open on top of pages:


And it also has an anti typing monkey block, that is, consecutive clicks that break or duplicate a popup on top of the other

bottomsheetmaui's People

Contributors

pabloprogramador avatar pabloxpandit avatar

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.