Awesome
CustomSheets
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
- Android
- [?] Other Platforms (Should work but I haven't tested)
How to use
- NuGet
NuGet ID: plugin.customsheets
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
Property | Data Type | Defalut Value | Info |
---|---|---|---|
SheetHeight | double | height of the screen - 200 | This defines the height of the sheet content area |
SheetWidth | double | width of the screen | This defines the width of the sheet content area |
SheetVisibel | bool | false | This property only to get that the sheet is visible or not |
IsCloseButtonVisible | bool | true | To hide/show the Close Button |
SheetBackground | Brush | Brush.Default | To set the gradient colors to the sheet |
SheetBackgroundColor | Color | White | To set the colors to the sheet |
IsRoundRectangleVisible | bool | true | To hide/show the RoundRectangel in sheet |
BackClickClose | bool | false | When click on the background to close the sheet |
RoundRectangleFill | Brush | Brush.Lightgray | Change/set the color to the RoundRectangle |
ForButtomLayout | This propertie to add the Layout for the button | ||
SheetContent | This propertie to add the Layout for the Sheet |
Methods
Method | Explanation |
---|---|
OpenSheet | It will open the sheet |
CloseSheet | It will close the sheet |
Sample Output
Demo on Version 1.0.6
Demo on Version 1.0.4