public HeaderAndFooterHandler(Widget control) { Control = control as Native.ListView; if (Control.HasHeader()) { headerElement = Control.GetHeader(); Control.RemoveHeader(); } if (Control.HasFooter()) { footerElement = Control.GetFooter(); Control.RemoveFooter(); } }