Skip to content

Commit c068993

Browse files
fixes #175
1 parent cbf125c commit c068993

File tree

5 files changed

+34
-12
lines changed

5 files changed

+34
-12
lines changed

PanCardView/CardsView.cs

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -433,18 +433,24 @@ public ICommand ItemSwipedCommand
433433
public object this[int index] => ItemsSource?.FindValue(index);
434434

435435
public static void Preserve()
436-
=> new List<Type>
437-
{
438-
typeof(CarouselView),
439-
typeof(CoverFlowView),
440-
typeof(ArrowControl),
441-
typeof(LeftArrowControl),
442-
typeof(RightArrowControl),
443-
typeof(CircleFrame),
444-
typeof(IndicatorItemView),
445-
typeof(IndicatorsControl),
446-
typeof(ParentScrollView)
447-
}.Clear();
436+
{
437+
ArrowControl.Preserve();
438+
CircleFrame.Preserve();
439+
IndicatorsControl.Preserve();
440+
ParentScrollView.Preserve();
441+
new List<Type>
442+
{
443+
typeof(CarouselView),
444+
typeof(CoverFlowView),
445+
typeof(ArrowControl),
446+
typeof(LeftArrowControl),
447+
typeof(RightArrowControl),
448+
typeof(CircleFrame),
449+
typeof(IndicatorItemView),
450+
typeof(IndicatorsControl),
451+
typeof(ParentScrollView)
452+
}.Clear();
453+
}
448454

449455
public void OnPanUpdated(object sender, PanUpdatedEventArgs e)
450456
=> OnPanUpdated(e);

PanCardView/Controls/ArrowControl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ public ArrowControl()
124124
});
125125
}
126126

127+
public static void Preserve()
128+
{
129+
}
130+
127131
protected override void OnParentSet()
128132
{
129133
base.OnParentSet();

PanCardView/Controls/CircleFrame.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public CircleFrame()
1919
Padding = 0;
2020
}
2121

22+
public static void Preserve()
23+
{
24+
}
25+
2226
public double Size
2327
{
2428
get => (double)GetValue(SizeProperty);

PanCardView/Controls/IndicatorsControl.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ public int ToFadeDuration
155155

156156
public object this[int index] => IndicatorsContexts?.FindValue(index);
157157

158+
public static void Preserve()
159+
{
160+
}
161+
158162
protected override void OnParentSet()
159163
{
160164
base.OnParentSet();

PanCardView/Controls/ParentScrollView.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ public class ParentScrollView : ScrollView, IOrdinateHandlerParentView
66
{
77
private double _prevY;
88

9+
public static void Preserve()
10+
{
11+
}
12+
913
public virtual void HandleOrdinateValue(double y, bool isFirst)
1014
{
1115
if (isFirst)

0 commit comments

Comments
 (0)