Class Dialog
Base class for Dialogs. A dialog is a small window that prompts the user to make a decision or enter additional information.
Namespace: Tizen.UIExtensions.ElmSharp
Assembly: Tizen.UIExtensions.ElmSharp.dll
Syntax
public class Dialog : Popup
Constructors
Dialog(EvasObject)
Creates a dialog window that uses the default dialog theme.
Declaration
public Dialog(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent |
Properties
Content
Gets or sets the content to display in that dialog.
Declaration
public EvasObject? Content { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<EvasObject> |
Message
Gets or sets the message to display in the dialog
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NegativeButton
Gets or sets the negative button used in the dialog
Declaration
public ElmSharp.Button? NegativeButton { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ElmSharp.Button> |
NeutralButton
Gets or sets the neutral button used in the dialog
Declaration
public ElmSharp.Button? NeutralButton { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ElmSharp.Button> |
PositiveButton
Gets or sets the positive button used in the dialog
Declaration
public ElmSharp.Button? PositiveButton { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ElmSharp.Button> |
Title
Gets or sets the title of the dialog
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TitleColor
Declaration
public Color TitleColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
ApplyButton(ButtonPosition, Nullable<ElmSharp.Button>)
Puts the button in one of the three available slots.
Declaration
protected virtual void ApplyButton(ButtonPosition position, ElmSharp.Button? button)
Parameters
Type | Name | Description |
---|---|---|
ButtonPosition | position | The slot to be occupied by the button expressed as a ButtonPosition |
System.Nullable<ElmSharp.Button> | button | The new button. |
ApplyContent(Nullable<EvasObject>)
Updates the content of the dialog.
Declaration
protected virtual void ApplyContent(EvasObject? content)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<EvasObject> | content | New dialog content. |
ApplyMessage(String)
Declaration
protected virtual void ApplyMessage(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message |
ApplyTitle(String)
Changes the dialog title.
Declaration
protected virtual void ApplyTitle(string title)
Parameters
Type | Name | Description |
---|---|---|
System.String | title | New dialog title. |
ApplyTitleColor(Color)
Declaration
protected virtual void ApplyTitleColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
CreateDialog(EvasObject, Boolean)
Creates a dialog window.
Declaration
public static Dialog CreateDialog(EvasObject parent, bool hasAcceptButton = false)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | |
System.Boolean | hasAcceptButton |
Returns
Type | Description |
---|---|
Dialog |
OnDismissed()
Called when the dialog is dismissed.
Declaration
protected virtual void OnDismissed()
Remarks
When dismissed, the dialog will unregister itself from the back key press event handling.
OnShown()
Called when the dialog is shown.
Declaration
protected virtual void OnShown()
Remarks
When shown, the dialog will register itself for the back key press event handling.
OnUnrealize()
Handles the disposing of a dialog widget.
Declaration
protected override void OnUnrealize()
Show()
Starts the dialog and displays it on screen.
Declaration
public void Show()
Events
Shown
Occurs whenever the dialog is first displayed.
Declaration
public event EventHandler Shown
Event Type
Type | Description |
---|---|
System.EventHandler |