Skip to content

Add ContainerContentChanging Event in ListView #1453

Closed

Description

@NGame1

What would you like to be added:

Need ContainerContentChanging in ListView

Why is this needed:

I need to use it for odd/even differentiation between listview items

For which Platform:

  • iOS
  • Android
  • WebAssembly
  • Windows

Anything else we need to know?

Something like this:

private void listViewContentChange(ListViewBase sender, ContainerContentChangingEventArgs args) {
            //this method is called for each item while it gets loaded in the listview. Here we are changing background color and text color
            if (args.ItemIndex == 0) {
              //colour for header
              args.ItemContainer.Background = (SolidColorBrush) Application.Current.Resources["grey"];
            } else {
              if (args.ItemIndex % 2 == 0) {
                //lighter colour 
                args.ItemContainer.Background = (SolidColorBrush) Application.Current.Resources["lightblue"];
              } else {
                //Dark colour 
                args.ItemContainer.Background = (SolidColorBrush) Application.Current.Resources["blue"];
              }
            }

Activity

  1. added
    kind/enhancement
    triage/untriaged
    on Aug 31, 2019
  2. added
    platform/android 🤖
    platform/ios 🍎
    platform/wasm 🌐
    and removed
    triage/untriaged
    on Sep 4, 2019
  3. MartinZikmund commented on Jul 17, 2020

    @MartinZikmund
    Member

    This is required for #2771

  4. MartinZikmund commented on Jul 17, 2020

    @MartinZikmund
    Member

    Will be added as part of #2771

  5. modified the milestone: 3.1 on Aug 28, 2020
  6. added
    project/items 🧾
    on Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/enhancementplatform/android 🤖platform/ios 🍎platform/wasm 🌐project/items 🧾

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions