ScrollBar.Unparent() is not working.
ScrollBar.Unparent() -> ScrollableBase.Remove(view)
Remove() of ScrollableBase is overridden to be removed based on ContentContainer.
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
}
}
+ internal void BaseRemove(View view)
+ {
+ base.Remove(view);
+ }
+
internal override bool OnAccessibilityPan(PanGesture gestures)
{
if (SnapToPage && scrollAnimation != null && scrollAnimation.State == Animation.States.Playing)
#region Methods
/// <summary>
+ /// Removes a view from its parent ScrollableBase. If a view has no parent, this method does nothing.
+ /// </summary>
+ public new void Unparent()
+ {
+ (GetParent() as ScrollableBase)?.BaseRemove(this);
+ }
+
+ /// <summary>
/// Update content length and position at once.
/// </summary>
/// <param name="contentLength">The total length of the content.</param>