EmptyListToVisibilityConverter

前端 未结 6 1967
天涯浪人
天涯浪人 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:28

    I guess the problem is, that the collection object stays the same, when you add or remove items from it. So the binding does not update the value and the converter is not called.

提交回复
热议问题