Skip to content

How to use LLMListViewItem.RightSwipeMaxLength Property in MVVM usecase #27

@deepak-rathi

Description

@deepak-rathi

Hi,

I want to use LLMListView for Swipe mode "Fix".
I have three buttons in ItemRightSwipeContentTemplate.

LLMListView ItemSource is binded to "MyCustomClass" list collection.

"MyCustomClass" has a boolean property "IsVisible".

If "IsVisible" is true
I show one button,
else
I show two button.

If i set LLMListView .ItemRightSwipeMaxLength="180" in xaml, and if user do right to left swipe.

In case of two button visible, If a user want to reset the LLMListViewItem by moving left to right on same listview item after following above step, this can be done from any visible part of LLMListViewItem.

But when only one button is visible, there a gap in between LLMListViewItem and Button from ItemRightSwipeContent due to LLMListView .ItemRightSwipeMaxLength value (180).

So I want to bind LLMListViewItem.RightSwipeLength property with "IsVisible" taking help of a IsVisibleToItemSwipeMaxLengthConverter which set different ItemRightSwipeMaxLength based on "IsVisible".

How can I do that??

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions