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

后端 未结 7 1717
粉色の甜心
粉色の甜心 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-09 18:51

    This works for me without temlpate(template will not work if you need refer elements from the header in the parent .cs code). So have to containers with 0 and not 0 height and switch their visibility.

      
    
        
    
    
        
        
          
    

提交回复
热议问题