Class AlertDialog
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
AlertDialog class shows a dialog with title, message and action buttons.
C#Copypublic class AlertDialog : Control, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
Tizen.NUI.Binding.ElementTizen.NUI.Components.ControlAlertDialog
- Implements
Constructors
Declaration
C#Copypublic AlertDialog()
API Level: 9
Declaration
C#Copypublic AlertDialog(string style)
Parameters
Type | Name | Description |
---|---|---|
String | style | Creates AlertDialog by special style defined in UX. |
API Level: 9
Declaration
C#Copypublic AlertDialog(AlertDialogStyle alertDialogStyle)
Parameters
Type | Name | Description |
---|---|---|
AlertDialogStyle | alertDialogStyle | Creates AlertDialog by style customized by user. |
API Level: 9
Properties
ActionContent
Action content of AlertDialog. ActionContent is added as a child of AlertDialog automatically. Actions are added as children of ActionContent.
Declaration
C#Copypublic View ActionContent { get; set; }
Property Value
Type | Description |
---|---|
View |
API Level: 9
Actions
Action views of AlertDialog. Action views are added as children of ActionContent. When Actions are set, previous Actions are removed from ActionContent.
Declaration
C#Copypublic IEnumerable<View> Actions { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<View> |
API Level: 9
Content
Content of AlertDialog. Content is added as a child of AlertDialog automatically. Message text is set to Content's Text if Content is TextLabel. If Content's Text is set manually by user, then it is not guaranteed that Content's Text is the same with Message text.
Declaration
C#Copypublic View Content { get; set; }
Property Value
Type | Description |
---|---|
View |
API Level: 9
Message
Message text of AlertDialog. Message text is set to Content's Text if Content is TextLabel. If Content's Text is set manually by user, then it is not guaranteed that Content's Text is the same with Message text.
Declaration
C#Copypublic string Message { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 9
Title
Title text of AlertDialog. Title text is set to TitleContent's Text if TitleContent is TextLabel. If TitleContent's Text is set manually by user, then it is not guaranteed that TitleContent's Text is the same with Title text.
Declaration
C#Copypublic string Title { get; set; }
Property Value
Type | Description |
---|---|
String |
API Level: 9
TitleContent
Title content of AlertDialog. TitleContent is added as a child of AlertDialog automatically. Title text is set to TitleContent's Text if TitleContent is TextLabel. If TitleContent's Text is set manually by user, then it is not guaranteed that TitleContent's Text is the same with Title text.
Declaration
C#Copypublic View TitleContent { get; set; }
Property Value
Type | Description |
---|---|
View |
API Level: 9
Methods
Declaration
C#Copypublic override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |