Home

Awesome

CustomSheets Nuget Nuget License: MIT

A simple customizable plugin for .NET MAUI.

Big thanks to Matt Goldman by his wonderful concept of #MAUIUIJuly, I learn so many new things during this month.

All the blogs from this #MAUIUIJuly are very easy to understand the .NET Maui UI structure

With the knowledge of this program, I create one small/simple customizable sheets plugin and I hope, it while be usefull to us.

Supported platforms

How to use

  1. NuGet

NuGet ID: plugin.customsheets

image

You can get this from NuGet here: https://www.nuget.org/packages/CustomSheets/

Or use the Package Manager:

Install-Package CustomSheets -Version 1.0.6

2.Add the following namespace declaration in your Xaml pages

xmlns:sheets="clr-namespace:CustomSheets;assembly=CustomSheets"

3.Add the sheet to your page and set the properties as you need

<sheets:Sheet x:Name="CommonSheet">
  <sheets:Sheet.SheetContent>
    <Label  Text="Payment Sucess ! " FontSize="Title" FontAttributes="Italic" TextColor="ForestGreen"/>
  </sheets:Sheet.SheetContent>
</sheets:Sheet>

Properties

PropertyData TypeDefalut ValueInfo
SheetHeightdoubleheight of the screen - 200This defines the height of the sheet content area
SheetWidthdoublewidth of the screenThis defines the width of the sheet content area
SheetVisibelboolfalseThis property only to get that the sheet is visible or not
IsCloseButtonVisiblebooltrueTo hide/show the Close Button
SheetBackgroundBrushBrush.DefaultTo set the gradient colors to the sheet
SheetBackgroundColorColorWhiteTo set the colors to the sheet
IsRoundRectangleVisiblebooltrueTo hide/show the RoundRectangel in sheet
BackClickCloseboolfalseWhen click on the background to close the sheet
RoundRectangleFillBrushBrush.LightgrayChange/set the color to the RoundRectangle
ForButtomLayoutThis propertie to add the Layout for the button
SheetContentThis propertie to add the Layout for the Sheet

Methods

MethodExplanation
OpenSheetIt will open the sheet
CloseSheetIt will close the sheet

Sample Output

Demo on Version 1.0.6

Screenshot (19)

Demo on Version 1.0.4

https://user-images.githubusercontent.com/110095923/181768492-4e530fb8-b863-48fd-b6be-352905ded9e5.mp4