Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
The WidgetView is a class for displaying the widget image and controlling the widget.
Input events that the WidgetView gets are delivered to the widget.
public class WidgetView : View, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
System.Object
Tizen.NUI.Binding.BindableObject
Tizen.NUI.Binding.Element
WidgetView
- Implements
-
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Constructors
Declaration
public WidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod)
Parameters
Type |
Name |
Description |
System.String |
widgetId |
|
System.String |
contentInfo |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
Single |
updatePeriod |
|
API Level: 3
Properties
Declaration
public string ContentInfo { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public PropertyMap Effect { get; set; }
Property Value
API Level: 4
Declaration
public string InstanceID { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public bool LoadingText { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
View Source
Gets or sets whether the widget is to delete permanently or not.
Declaration
public bool PermanentDelete { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
Declaration
public bool Preview { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
Declaration
public PropertyMap RetryText { get; set; }
Property Value
API Level: 4
Declaration
public string Title { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public float UpdatePeriod { get; }
Property Value
API Level: 3
Declaration
public string WidgetID { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
View Source
Gets or sets whether the widget state is faulted or not.
Declaration
public bool WidgetStateFaulted { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
API Level: 3
Methods
View Source
Activates a widget in the faulted state.
A widget in faulted state must be activated before adding the widget.
Declaration
public void ActivateFaultedWidget()
API Level: 3
View Source
Cancels the touch event procedure.
If you call this function after feed the touch down event, the widget will get ON_HOLD events.
If a widget gets ON_HOLD event, it will not do anything even if you feed touch up event.
Declaration
public bool CancelTouchEvent()
Returns
Type |
Description |
System.Boolean |
True on success, false otherwise.
|
API Level: 3
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
API Level: 3
Declaration
public bool PauseWidget()
Returns
Type |
Description |
System.Boolean |
True on success, false otherwise.
|
API Level: 3
Declaration
public bool ResumeWidget()
Returns
Type |
Description |
System.Boolean |
True on success, false otherwise.
|
API Level: 3
Declaration
public bool TerminateWidget()
Returns
Type |
Description |
System.Boolean |
True on success, false otherwise
|
API Level: 4
Events
View Source
An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted after all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.
Declaration
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetAdded
Event Type
API Level: 3
View Source
WidgetContentUpdated
An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted after all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.
Declaration
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetContentUpdated
Event Type
API Level: 3
View Source
An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted after all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.
Declaration
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetCreationAborted
Event Type
API Level: 3
View Source
An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted after all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.
Declaration
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetDeleted
Event Type
API Level: 3
View Source
An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted after all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.
Declaration
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetFaulted
Event Type
API Level: 3
View Source
An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
This signal is emitted after all resources required by a control are loaded and ready.
Most resources are only loaded when the control is placed on the stage.
Declaration
public event EventHandler<WidgetView.WidgetViewEventArgs> WidgetUpdatePeriodChanged
Event Type
API Level: 3
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable