https://github.com/nightlybuilds-net/Xam.Forms.GraceAlert
Xamarin Forms toast alert
https://github.com/nightlybuilds-net/Xam.Forms.GraceAlert
Last synced: 5 months ago
JSON representation
Xamarin Forms toast alert
- Host: GitHub
- URL: https://github.com/nightlybuilds-net/Xam.Forms.GraceAlert
- Owner: nightlybuilds-net
- License: mit
- Created: 2020-03-20T17:35:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T16:24:55.000Z (over 5 years ago)
- Last Synced: 2025-04-01T07:14:32.239Z (6 months ago)
- Language: C#
- Size: 2.2 MB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-xamarin-forms - Xam.Forms.GraceAlert ★9
README
# Welcome to Xam.Forms.GraceAlert
Hi! I'm [Mark Jack Milian](http://markjackmilian.net/) and i'm here to aswer a few questions
## Packages ##
Platform/Feature | Package name | Stable | Status
-----------------------|-------------------------------------------|-----------------------------|------------------------
Core | `Xam.Forms.GraceAlert` | [](https://www.nuget.org/packages/Xam.Forms.GraceAlert) | [](https://dev.azure.com/nightlybuilds-net/Xam.GraceAlert/_build/latest?definitionId=18&branchName=master)|All packages are compliant with [Semantic Versioning](https://semver.org/)
## What is Xam.Forms.GraceAlert?
Is a Xamarin Forms View to show non invasive notification for alert, warning and info.
## How does it works?
### Page Structure
Please add a reference of our nuget to your Cross-Platform Xamarin.Forms project.Add a GraceAlertView as **first** element of your page and add you "normal" inside GraceAlertView.BodyContent
```xaml
```
### Show a notification
To show a notification use the extension method on Page. *Never call the directly methods on GraceAlertView.*
```xaml
Error(this Page page, string title, string text, bool block = false):Task
Warning(this Page page, string title, string text, bool block = false):Task
Info(this Page page, string title, string text, bool block = false):Task
```If block is true the notification will remain on the screen until you touch it.
### Customize notification
Many properties are customizable using implicit style.```xaml
<Setter Property="DismissTime" Value="1000"/>
```
## Samples
- Xamarin.Forms.Example in this repo;