Dynamically show/hide Header or Footer of Xamarin.Forms.ListView

后端 未结 7 1715
粉色の甜心
粉色の甜心 2021-02-09 18:29

Is there a way to dynamically show/hide the header of a ListView based on a condition at runtime.



        
7条回答
  •  滥情空心
    2021-02-09 18:56

    You should be able to hide the footer and not have it consume any space. I believe you'll need to set the HeightRequest for the label in the FooterTemplate. You can do that by doing something like:

    
    

提交回复
热议问题