EmptyListToVisibilityConverter

前端 未结 6 1939
天涯浪人
天涯浪人 2021-01-19 03:21

I\'m trying to do an \"empty list to visibility converter\" for WPF. This is an IValueConverter that takes an object ( that should be a list ) and if the list is empty (or i

6条回答
  •  無奈伤痛
    2021-01-19 03:39

    A better alternative is to use ObservableCollection and then bind to its Count property: WPF Converters and ObservableCollections

提交回复
热议问题