Class CircularPagination
Definition
- Assembly:
- Tizen.NUI.Wearable.dll
CircularPagination shows the number of pages available and the currently active page. Especially, CircularPagination provides indicators specific to wearable device.
public class CircularPagination : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectCircularPagination
- Implements
-
System.IDisposable
Constructors
View SourceCircularPagination()
Creates a new instance of a CircularPagination.
Declaration
public CircularPagination()
CircularPagination(CircularPaginationStyle)
Creates a new instance of a CircularPagination using style.
Declaration
public CircularPagination(CircularPaginationStyle style)
Parameters
Type | Name | Description |
---|---|---|
CircularPaginationStyle | style |
Properties
View SourceCenterIndicatorImageURL
Gets or sets the background resource of the center indicator.
Declaration
public Selector<string> CenterIndicatorImageURL { get; set; }
Property Value
Type | Description |
---|---|
Selector<string> |
IndicatorCount
Gets or sets the number of the pages/indicators.
This value is for symmetrical indicators.
Declaration
public int IndicatorCount { get; set; }
Property Value
Type | Description |
---|---|
int |
IndicatorImageURL
Gets or sets the background resource of indicator.
Declaration
public Selector<string> IndicatorImageURL { get; set; }
Property Value
Type | Description |
---|---|
Selector<string> |
IndicatorSize
Gets or sets the size of the indicator.
Declaration
public Size IndicatorSize { get; set; }
Property Value
Type | Description |
---|---|
Size |
IsSymmetrical
Checks whether the indicators are symmetrical or not.
The default value is true. If the value is true, the user just can set IndicatorCount. If false, the user should set both the number of Left Indicators and the number of Right Indicators. Please refer to LeftIndicatorCount and RightIndicatorCount.
Declaration
public bool IsSymmetrical { get; set; }
Property Value
Type | Description |
---|---|
bool |
LeftIndicatorCount
Gets or sets the number of the left pages/indicators.
This value can be set when IsSymmetrical API is false.
Declaration
public int LeftIndicatorCount { get; set; }
Property Value
Type | Description |
---|---|
int |
RightIndicatorCount
Gets or sets the number of the right pages/indicators.
This value can be set when IsSymmetrical API is false.
Declaration
public int RightIndicatorCount { get; set; }
Property Value
Type | Description |
---|---|
int |
SelectedIndex
Gets or sets the index of the select indicator.
If no value is set, the default value is the center indicator.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceCreateViewStyle()
you can override it to create your own default style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type | Description |
---|---|
ViewStyle |
Overrides
View SourceDispose(DisposeTypes)
you can override it to clean-up your own resources.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | DisposeTypes |
Overrides
View SourceGetIndicatorPosition(int)
Retrieves the position of a indicator by index.
Declaration
public Position GetIndicatorPosition(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | Indicator index |
Returns
Type | Description |
---|---|
Position | The position of a indicator by index |
SelectIn(VisualMap)
You can override it to do your select in operation.
Declaration
protected virtual void SelectIn(VisualMap selectInIndicator)
Parameters
Type | Name | Description |
---|---|---|
VisualMap | selectInIndicator | The indicator will be selected in |
SelectOut(VisualMap)
You can override it to do your select out operation.
Declaration
protected virtual void SelectOut(VisualMap selectOutIndicator)
Parameters
Type | Name | Description |
---|---|---|
VisualMap | selectOutIndicator | The indicator will be selected out |
SetIndicatorPosition(int, Position)
Sets the position of a indicator by index.
Declaration
public virtual void SetIndicatorPosition(int index, Position position)
Parameters
Type | Name | Description |
---|---|---|
int | index | Indicator index |
Position | position | The position of a indicator by index |