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

后端 未结 7 1718
粉色の甜心
粉色の甜心 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:37

    I tried all variants with:
    1) Header property binding new object() or null
    2) Two stacklayouts with not converter (https://stackoverflow.com/a/53197844/7429947)
    3) DataTrigger and Trigger on change IsVisible set HeightRequest

    This is doesn't help me, and then I replaced MinimumHeightRequest on 'HeightRequest' and second variant help me for iOS and Android!

    Xamarin.Forms version: 4.6.0.726

提交回复
热议问题