/// <summary> /// Lowers the view to the bottom of all views. /// </summary> /// <remarks> /// The sibling order of views within the parent will be updated automatically. /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion. /// </remarks> /// <since_tizen> 3 </since_tizen> public void LowerToBottom() { var parentChildren = GetParent()?.Children; if (parentChildren != null) { parentChildren.Remove(this); parentChildren.Insert(0, this); LayoutGroup layout = Layout as LayoutGroup; layout?.ChangeLayoutSiblingOrder(0); Interop.NDalic.LowerToBottom(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } } }
/// <summary> /// Raises the view above all other views. /// </summary> /// <remarks> /// Sibling order of views within the parent will be updated automatically. /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion. /// </remarks> /// <since_tizen> 3 </since_tizen> public void RaiseToTop() { var parentChildren = GetParent()?.Children; if (parentChildren != null) { parentChildren.Remove(this); parentChildren.Add(this); LayoutGroup layout = Layout as LayoutGroup; layout?.ChangeLayoutSiblingOrder(parentChildren.Count - 1); Interop.NDalic.RaiseToTop(SwigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } } }