Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nightlybuilds-net/Xam.Forms.GraceAlert
Xamarin Forms toast alert
https://github.com/nightlybuilds-net/Xam.Forms.GraceAlert
Last synced: 29 days 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 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-11T16:24:55.000Z (over 4 years ago)
- Last Synced: 2024-09-01T00:46:34.500Z (3 months ago)
- Language: C#
- Size: 2.2 MB
- Stars: 10
- Watchers: 3
- 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![](ios.gif)
![](droid.gif)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` | [![Nuget](https://img.shields.io/nuget/v/Xam.Forms.GraceAlert)](https://www.nuget.org/packages/Xam.Forms.GraceAlert) | [![Build Status](https://dev.azure.com/nightlybuilds-net/Xam.GraceAlert/_apis/build/status/markjackmilian.Xam.Forms.GraceAlert?branchName=master)](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;