Class Toast
Toast Popup: Plain and simple
Inheritance
Forms9Patch.PopupBase
Toast
Implements
Inherited Members
Xamarin.Forms.TemplatedPage.OnChildRemoved(Xamarin.Forms.Element, System.Int32)
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class Toast : ModalPopup, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, INavigationProxy, IStyleSelectable, IAnimatable, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, ITabStopElement, IStylable, ILayout, IPageController, IVisualElementController, IElementController, IElementConfiguration<Page>, IPaddingElement, IControlTemplated, IPopup, IBackground, IShape, IElement, IDisposable
Constructors
Toast()
Initializes a new instance of the Toast class.
Declaration
public Toast()
Fields
TextColorProperty
The text color property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
TextProperty
The text property backing store.
Declaration
public static readonly BindableProperty TextProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
TitleProperty
The title property backing store.
Declaration
public static readonly BindableProperty TitleProperty
Field Value
| Type | Description |
|---|---|
| BindableProperty |
Properties
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The text. |
TextColor
Gets or sets the color of the text.
Declaration
public Color TextColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color | The color of the text. |
Title
Gets or sets the title.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The title. |
Methods
Create(String, String, TimeSpan)
Create the specified title and text.
Declaration
public static Toast Create(string title, string text, TimeSpan popAfter = default(TimeSpan))
Parameters
| Type | Name | Description |
|---|---|---|
| String | title | |
| String | text | |
| TimeSpan | popAfter | Will dissappear after popAfter TimeSpan |
Returns
| Type | Description |
|---|---|
| Toast |
Dispose(Boolean)
Dispose
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | disposing |
Overrides
Forms9Patch.PopupBase.Dispose(System.Boolean)
OnPropertyChanged(String)
Ons the property changed.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | propertyName | Property name. |
Overrides
Events
ActionTagTapped
Occurs when HtmlText wrapped with an action (<a>) tag is tapped.
Declaration
public event EventHandler<ActionTagEventArgs> ActionTagTapped
Event Type
| Type | Description |
|---|---|
| EventHandler<ActionTagEventArgs> |