Class TargetedToast
A simple toast that points to an element
Inheritance
Forms9Patch.PopupBase
TargetedToast
Implements
Inherited Members
Xamarin.Forms.TemplatedPage.OnChildRemoved(Xamarin.Forms.Element, System.Int32)
Namespace: Forms9Patch
Assembly: Forms9Patch.dll
Syntax
public class TargetedToast : BubblePopup, 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
TargetedToast(VisualElement)
Initializes a new instance of the TargetedToast class.
Declaration
public TargetedToast(VisualElement target)
Parameters
Type | Name | Description |
---|---|---|
VisualElement | target | Target. |
Fields
OkButtonColorProperty
The ok button color property.
Declaration
public static readonly BindableProperty OkButtonColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
OkTextColorProperty
The ok text color property.
Declaration
public static readonly BindableProperty OkTextColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
OkTextProperty
The ok text property.
Declaration
public static readonly BindableProperty OkTextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
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
OkButtonColor
Gets or sets the color of the ok button.
Declaration
public Color OkButtonColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the ok button. |
OkText
Gets or sets the ok text.
Declaration
public string OkText { get; set; }
Property Value
Type | Description |
---|---|
String | The ok text. |
OkTextColor
Gets or sets the color of the ok text.
Declaration
public Color OkTextColor { get; set; }
Property Value
Type | Description |
---|---|
Color | The color of the ok text. |
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(VisualElement, String, String, TimeSpan)
Create a toast, pointing at the specified target, with title, text, and optional timeout (popAfter)
Declaration
public static TargetedToast Create(VisualElement target, string title, string text, TimeSpan popAfter = default(TimeSpan))
Parameters
Type | Name | Description |
---|---|---|
VisualElement | target | |
String | title | |
String | text | |
TimeSpan | popAfter |
Returns
Type | Description |
---|---|
TargetedToast |
OnPropertyChanged(String)
Ons the property changed.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | Property name. |