To get the scroll position given to ScrollTo, ScrollPosition is added.
ScrollPosition is the position in the opposite direction to the position
of ContentContainer.
To get the current scroll position, ScrollCurrentPosition is added.
ScrollCurrentPosition is the position in the opposite direction to the
current position of ContentContainer.
Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
return position;
}
+ /// <summary>
+ /// Scroll position given to ScrollTo.
+ /// This is the position in the opposite direction to the position of ContentContainer.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
+ public Position ScrollPosition
+ {
+ get
+ {
+ return new Position(-ContentContainer.Position);
+ }
+ }
+
+ /// <summary>
+ /// Current scroll position in the middle of ScrollTo animation.
+ /// This is the position in the opposite direction to the current position of ContentContainer.
+ /// </summary>
+ /// <since_tizen> 8 </since_tizen>
+ public Position ScrollCurrentPosition
+ {
+ get
+ {
+ return new Position(-ContentContainer.CurrentPosition);
+ }
+ }
}
} // namespace