locked
Change Listview Separator according to item property RRS feed

  • Question

  • User389524 posted

    Hello, There's a way to change Listview Separator according to an item property? Example: I have a model called Dog: public class DogModel { string DogName { get; set; } int DogOwnerCode { get; set; } }

    I want to display a List of Dogs, and when the DogOwnerCode property is changed, the separator needs to be thicker. Like this:

    Friday, October 4, 2019 2:28 PM

All replies

  • User2148 posted

    Maybe you can create a GroupHeader and set it as a tiny BoxView

    Friday, October 4, 2019 2:31 PM
  • User378095 posted

    https://docs.microsoft.com/zh-cn/samples/xamarin/xamarin-forms-samples/userinterface-listview-grouping/

    Saturday, October 5, 2019 3:30 AM