-
Notifications
You must be signed in to change notification settings - Fork 240
/
CircularPagination.cs
executable file
·787 lines (721 loc) · 28.5 KB
/
CircularPagination.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
/*
* Copyright(c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using Tizen.NUI.BaseComponents;
using Tizen.NUI.Components;
namespace Tizen.NUI.Wearable
{
/// <summary>
/// CircularPagination shows the number of pages available and the currently active page.
/// Especially, CircularPagination provides indicators specific to wearable device.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public class CircularPagination : Control
{
private CircularPaginationStyle circularPaginationStyle;
private VisualView container;
private List<ImageVisual> indicatorList = new List<ImageVisual>();
private bool isSymmetrical = true;
private int middleIndex = 9;
private int indicatorCount = 0;
private int leftIndicatorCount = 0;
private int rightIndicatorCount = 0;
private int selectedIndex = -1;
private bool isCenterImageSet = false; // When CenterIndicatorImageURL is set, this variable becomes true.
private bool isCurrentIndicatorCentered = false; // When the current indicator is the center one, this variable becomes true.
private bool isOddNumber = true;
private bool uninitializedLeftIndicator = true; // Need it when the indicators are asymmetry and the right indicator count is set earlier than left one.
Position2D[] oddArray = new Position2D[] { new Position2D(36, 74), new Position2D(47, 60), new Position2D(60, 47), new Position2D(74, 36),
new Position2D(89, 26), new Position2D(105, 18), new Position2D(122, 11), new Position2D(139, 7),
new Position2D(157, 4), new Position2D(175, 3), new Position2D(193, 4), new Position2D(211, 7),
new Position2D(228, 11), new Position2D(245, 18), new Position2D(261, 26), new Position2D(276, 36),
new Position2D(290, 47), new Position2D(303, 60), new Position2D(314, 73) };
Position2D[] evenArray = new Position2D[] { new Position2D(41, 67), new Position2D(53, 53), new Position2D(67, 41), new Position2D(81, 31),
new Position2D(97, 22), new Position2D(113, 14), new Position2D(131, 9), new Position2D(148, 5),
new Position2D(166, 3), new Position2D(184, 3), new Position2D(202, 5), new Position2D(220, 9),
new Position2D(237, 14), new Position2D(253, 22), new Position2D(269, 31), new Position2D(283, 41),
new Position2D(297, 53), new Position2D(309, 67) };
static CircularPagination()
{
ThemeManager.AddPackageTheme(DefaultThemeCreator.Instance);
}
/// <summary>
/// Creates a new instance of a CircularPagination.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircularPagination() : base()
{
Initialize();
}
/// <summary>
/// Creates a new instance of a CircularPagination using style.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public CircularPagination(CircularPaginationStyle style) : base(style)
{
Initialize();
}
/// <summary>
/// Gets or sets the size of the indicator.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Size IndicatorSize
{
get
{
return circularPaginationStyle?.IndicatorSize;
}
set
{
if (value == null || circularPaginationStyle == null)
{
return;
}
circularPaginationStyle.IndicatorSize = value;
UpdateVisual();
}
}
/// <summary>
/// Gets or sets the background resource of indicator.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Selector<string> IndicatorImageURL
{
get
{
return circularPaginationStyle?.IndicatorImageURL;
}
set
{
if (value == null || circularPaginationStyle == null)
{
return;
}
circularPaginationStyle.IndicatorImageURL = value;
UpdateVisual();
}
}
/// <summary>
/// Gets or sets the background resource of the center indicator.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Selector<string> CenterIndicatorImageURL
{
get
{
if (isCenterImageSet)
{
return circularPaginationStyle?.CenterIndicatorImageURL;
}
else
{
Log.Info("NUI", "CenterIndicatorImageURL is not set yet. \n");
return "";
}
}
set
{
if (value == null || circularPaginationStyle == null)
{
return;
}
circularPaginationStyle.CenterIndicatorImageURL = value;
isCenterImageSet = true;
UpdateVisual();
}
}
/// <summary>
/// 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.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public bool IsSymmetrical
{
get
{
return isSymmetrical;
}
set
{
if (isSymmetrical == value)
{
return;
}
if (value == false)
{
isOddNumber = true;
CreateIndicator(middleIndex);
}
isSymmetrical = value;
UpdateContainer();
UpdateVisual();
}
}
/// <summary>
/// Gets or sets the number of the pages/indicators.
///
/// This value is for symmetrical indicators.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public int IndicatorCount
{
get
{
return indicatorCount;
}
set
{
if (indicatorCount == value || indicatorCount < 0 || value <= 0)
{
return;
}
if (isSymmetrical == false)
{
Log.Info("NUI", "This property is not for asymmetric pagination. Change to symmetrical pagination.\n");
isSymmetrical = true;
}
if (value % 2 == 1) // Odd number
{
isOddNumber = true;
}
else // Even number
{
isOddNumber = false;
}
if (indicatorCount < value)
{
int arrayIndex = 0;
if (isOddNumber)
{
arrayIndex = (19 - value) / 2;
}
else
{
arrayIndex = (18 - value) / 2;
}
if (arrayIndex < 0) return;
for (int i = (indicatorCount + 1); i <= value; i++)
{
CreateIndicator(arrayIndex);
arrayIndex++;
}
// If selectedIndex is not set yet, the default value is middle index.
if (selectedIndex == -1)
{
selectedIndex = value / 2;
SelectIn(indicatorList[selectedIndex]);
}
}
else
{
for (int i = value; i < indicatorCount; i++)
{
ImageVisual indicator = indicatorList[i];
container.RemoveVisual("Indicator" + i);
}
indicatorList.RemoveRange(value, indicatorCount - value);
if (selectedIndex >= value)
{
selectedIndex = value - 1;
SelectIn(indicatorList[selectedIndex]);
}
}
indicatorCount = value;
UpdateContainer();
UpdateVisual();
}
}
/// <summary>
/// Gets or sets the number of the left pages/indicators.
///
/// This value can be set when IsSymmetrical API is false.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public int LeftIndicatorCount
{
get
{
return leftIndicatorCount;
}
set
{
if (isSymmetrical == true)
{
Log.Info("NUI", "This variable is not for symmetric pagination. \n");
isSymmetrical = false;
//return;
}
if (leftIndicatorCount == value || leftIndicatorCount < 0 || value > 9 || value < 0)
{
return;
}
isOddNumber = true;
if (leftIndicatorCount < value)
{
for (int i = (middleIndex - value); i < (middleIndex - leftIndicatorCount); i++)
{
CreateIndicator(i);
selectedIndex++;
}
}
else
{
for (int i = 0; i < (leftIndicatorCount - value); i++)
{
ImageVisual indicator = indicatorList[i];
container.RemoveVisual("Indicator" + i);
}
indicatorList.RemoveRange(0, (leftIndicatorCount - value)); // LeftIndicator starts from index 0.
if (selectedIndex == 0)
{
selectedIndex++;
SelectIn(indicatorList[selectedIndex]);
}
else
{
selectedIndex--;
SelectIn(indicatorList[selectedIndex]);
}
}
leftIndicatorCount = value;
indicatorCount = leftIndicatorCount + rightIndicatorCount + 1;
// When RightIndicatorCount is set before, then selectedIndex should be updated using the current LeftIndicatorCount.
if (uninitializedLeftIndicator && selectedIndex == 0)
{
selectedIndex = leftIndicatorCount;
}
uninitializedLeftIndicator = false;
UpdateContainer();
UpdateAsymmetry();
}
}
/// <summary>
/// Gets or sets the number of the right pages/indicators.
///
/// This value can be set when IsSymmetrical API is false.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public int RightIndicatorCount
{
get
{
return rightIndicatorCount;
}
set
{
if (isSymmetrical == true)
{
Log.Info("NUI", "This variable is not for symmetric pagination. \n");
isSymmetrical = false;
//return;
}
if (rightIndicatorCount == value || rightIndicatorCount < 0 || value > 9 || value < 0)
{
return;
}
isOddNumber = true;
if (rightIndicatorCount < value)
{
for (int i = (middleIndex + rightIndicatorCount + 1); i <= (middleIndex + value); i++)
{
CreateIndicator(i);
}
}
else
{
for (int i = (leftIndicatorCount + value + 1); i < (leftIndicatorCount + rightIndicatorCount); i++)
{
ImageVisual indicator = indicatorList[i];
container.RemoveVisual("Indicator" + i);
}
indicatorList.RemoveRange((leftIndicatorCount + value), (rightIndicatorCount - value));
if (selectedIndex >= (leftIndicatorCount + rightIndicatorCount))
{
selectedIndex--;
SelectIn(indicatorList[selectedIndex]);
}
}
rightIndicatorCount = value;
indicatorCount = leftIndicatorCount + rightIndicatorCount + 1;
UpdateContainer();
UpdateAsymmetry();
}
}
/// <summary>
/// Gets or sets the index of the select indicator.
///
/// If no value is set, the default value is the center indicator.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public int SelectedIndex
{
get
{
return selectedIndex;
}
set
{
if (selectedIndex == value || value < 0 || value >= indicatorCount)
{
return;
}
// TODO : Here it needs to add virtual function for Animation.
if (selectedIndex >= 0)
{
if ((isSymmetrical && selectedIndex < indicatorCount) ||
(!isSymmetrical && selectedIndex <= (middleIndex + rightIndicatorCount)))
{
CheckCenterIndicator(selectedIndex);
SelectOut(indicatorList[selectedIndex]);
}
}
selectedIndex = value;
if (selectedIndex >= 0)
{
if ((isSymmetrical && selectedIndex < indicatorCount) ||
(!isSymmetrical && selectedIndex <= (middleIndex + rightIndicatorCount)))
{
CheckCenterIndicator(selectedIndex);
SelectIn(indicatorList[selectedIndex]);
}
}
}
}
/// <summary>
/// Retrieves the position of a indicator by index.
/// </summary>
/// <param name="index">Indicator index</param>
/// <returns>The position of a indicator by index</returns>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public Position GetIndicatorPosition(int index)
{
if (index < 0 || index >= indicatorList.Count)
{
return null;
}
return new Position(indicatorList[index].Position.X, indicatorList[index].Position.Y);
}
/// <summary>
/// Sets the position of a indicator by index.
/// </summary>
/// <param name="index">Indicator index</param>
/// <param name="position">The position of a indicator by index</param>
/// <exception cref="ArgumentNullException">This exception can occur by the position is null.</exception>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void SetIndicatorPosition(int index, Position position)
{
if (position == null)
{
throw new ArgumentNullException(nameof(position));
}
// Update odd / even Array and List by each converted index.
if (isOddNumber)
{
if (isSymmetrical)
{
oddArray[(middleIndex - (indicatorCount / 2) + index)] = position;
}
else // IsSymmetrical is false and it means the number of left indicators is different from that of right ones.
{
oddArray[(middleIndex - leftIndicatorCount) + index] = position;
}
indicatorList[index].Position = new Vector2(position.X, position.Y);
}
else // Only symmetry circular pagination can be even number.
{
evenArray[(middleIndex - (indicatorCount / 2) + index)] = position;
indicatorList[index].Position = new Vector2(position.X, position.Y);
}
UpdateVisual();
}
/// <summary>
/// You can override it to do your select out operation.
/// </summary>
/// <param name="selectOutIndicator">The indicator will be selected out</param>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void SelectOut(VisualMap selectOutIndicator)
{
if (!(selectOutIndicator is ImageVisual visual)) return;
if (isCurrentIndicatorCentered)
{
visual.URL = circularPaginationStyle?.CenterIndicatorImageURL?.Normal;
}
else
{
visual.URL = circularPaginationStyle?.IndicatorImageURL?.Normal;
}
visual.Opacity = 0.5f;
}
/// <summary>
/// You can override it to do your select in operation.
/// </summary>
/// <param name="selectInIndicator">The indicator will be selected in</param>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected virtual void SelectIn(VisualMap selectInIndicator)
{
if (!(selectInIndicator is ImageVisual visual)) return;
if (isCurrentIndicatorCentered)
{
visual.URL = circularPaginationStyle?.CenterIndicatorImageURL?.Selected;
}
else
{
visual.URL = circularPaginationStyle?.IndicatorImageURL?.Selected;
}
visual.Opacity = 1.0f;
}
/// <summary>
/// you can override it to create your own default style.
/// </summary>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected override ViewStyle CreateViewStyle()
{
return new CircularPaginationStyle();
}
/// <summary>
/// you can override it to clean-up your own resources.
/// </summary>
/// <param name="type">DisposeTypes</param>
/// <since_tizen> 8 </since_tizen>
[Obsolete("This has been deprecated in API12")]
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void Dispose(DisposeTypes type)
{
if (disposed)
{
return;
}
if (type == DisposeTypes.Explicit)
{
container.RemoveAll();
indicatorList.Clear();
this.Remove(container);
container.Dispose();
container = null;
}
base.Dispose(type);
}
private void Initialize()
{
circularPaginationStyle = ViewStyle as CircularPaginationStyle;
if (circularPaginationStyle == null)
{
throw new Exception("CircularPagination style is null.");
}
container = new VisualView()
{
Name = "Container",
ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft,
PivotPoint = Tizen.NUI.PivotPoint.TopLeft,
PositionUsesPivotPoint = true,
};
this.Add(container);
}
// The parameter, index, is for the index of either oddArray or evenArray.
private void CreateIndicator(int index)
{
if (circularPaginationStyle == null || circularPaginationStyle.IndicatorSize == null)
{
return;
}
ImageVisual indicator = new ImageVisual
{
URL = circularPaginationStyle.IndicatorImageURL?.Normal,
Size = new Size2D((int)circularPaginationStyle.IndicatorSize.Width, (int)circularPaginationStyle.IndicatorSize.Height),
Opacity = 0.5f,
};
if (isOddNumber)
{
indicator.Position = oddArray[index];
}
else
{
indicator.Position = evenArray[index];
}
container.AddVisual("Indicator" + indicatorList.Count, indicator);
indicatorList.Add(indicator);
}
private void CheckCenterIndicator(int index)
{
if (isCenterImageSet &&
(isSymmetrical && (index == indicatorCount / 2)) ||
(!isSymmetrical && (index == leftIndicatorCount)))
{
isCurrentIndicatorCentered = true;
}
else
{
isCurrentIndicatorCentered = false;
}
}
private void UpdateContainer()
{
if (circularPaginationStyle == null || circularPaginationStyle.IndicatorSize == null || container == null)
{
return;
}
if (indicatorList.Count > 0)
{
container.SizeWidth = (circularPaginationStyle.IndicatorSize.Width) * indicatorList.Count;
}
else
{
container.SizeWidth = 0;
}
container.SizeHeight = circularPaginationStyle.IndicatorSize.Height;
}
private void UpdateVisual()
{
if (null == circularPaginationStyle.IndicatorSize) return;
var indicatorImageURL = circularPaginationStyle.IndicatorImageURL;
if (null == indicatorImageURL) return;
if (indicatorCount <= 0) return;
for (int i = 0; i < indicatorList.Count; i++)
{
ImageVisual indicator = indicatorList[i];
indicator.Size = new Size2D((int)circularPaginationStyle.IndicatorSize.Width, (int)circularPaginationStyle.IndicatorSize.Height);
CheckCenterIndicator(i);
if (i == selectedIndex)
{
// If the center image is set before, then should update the center visual separately.
if (isCurrentIndicatorCentered)
{
indicator.URL = circularPaginationStyle.CenterIndicatorImageURL?.Selected;
}
else
{
indicator.URL = indicatorImageURL.Selected;
}
indicator.Opacity = 1.0f;
}
else
{
// If the center image is set before, then should update the center visual separately.
if (isCurrentIndicatorCentered)
{
indicator.URL = circularPaginationStyle.CenterIndicatorImageURL?.Normal;
}
else
{
indicator.URL = indicatorImageURL.Normal;
}
indicator.Opacity = 0.5f;
}
if (isOddNumber)
{
if (isSymmetrical)
{
indicator.Position = oddArray[middleIndex - (indicatorCount / 2) + i];
}
else
{
indicator.Position = oddArray[(middleIndex - leftIndicatorCount) + i];
}
}
else
{
indicator.Position = evenArray[middleIndex - (indicatorCount / 2) + i];
}
}
}
private void UpdateAsymmetry()
{
if (null == circularPaginationStyle.IndicatorSize) return;
var indicatorImageURL = circularPaginationStyle.IndicatorImageURL;
if (null == indicatorImageURL) return;
int listCount = indicatorList.Count;
for (int i = 0; i < listCount; i++)
{
container.RemoveVisual("Indicator" + i);
}
container.RemoveAll();
indicatorList.Clear();
for (int i = 0; i < listCount; i++)
{
ImageVisual newOne = new ImageVisual
{
Size = new Size2D((int)circularPaginationStyle.IndicatorSize.Width, (int)circularPaginationStyle.IndicatorSize.Height),
Position = oddArray[i + (middleIndex - leftIndicatorCount)]
};
if (isCenterImageSet && !isSymmetrical && (i == leftIndicatorCount))
{
newOne.URL = circularPaginationStyle.CenterIndicatorImageURL?.Normal;
}
else
{
newOne.URL = indicatorImageURL.Normal;
}
newOne.Opacity = 0.5f;
container.AddVisual("Indicator" + i, newOne);
indicatorList.Add(newOne);
}
// If selectedIndex is not set yet, the default value is middle index.
if (selectedIndex == -1)
{
selectedIndex = leftIndicatorCount;
}
if (isCenterImageSet && (selectedIndex == leftIndicatorCount))
{
indicatorList[selectedIndex].URL = circularPaginationStyle.CenterIndicatorImageURL?.Selected;
indicatorList[selectedIndex].Opacity = 1.0f;
}
else
{
indicatorList[selectedIndex].URL = indicatorImageURL.Selected;
indicatorList[selectedIndex].Opacity = 1.0f;
}
}
}
}