GithubHelp home page GithubHelp logo

Comments (10)

brookshi avatar brookshi commented on June 15, 2024

Ok. I will add a sample for this function, please wait a moment

from llmlistview.

brookshi avatar brookshi commented on June 15, 2024

I add two method : ResetSwipe & ResetSwipeWithAnimation. You can checkout the code and try the FixedSwipePage in sample.
If it meets your requirement, please let me know, I will publish it to Nuget.

from llmlistview.

f1nzer avatar f1nzer commented on June 15, 2024

@brookshi btw, I think it's will be a good feature to add "SwipedMemberPath" property to listview (like DisplayMemberPath and SelectedValuePath from another controls).

from llmlistview.

brookshi avatar brookshi commented on June 15, 2024

@f1nzer , Is "SwipedMemberPath" used to determine the SwipeMode for ListViewItem?

from llmlistview.

f1nzer avatar f1nzer commented on June 15, 2024

@brookshi we need this in order to track current swipe state of every ListViewItem.
For example:

class ViewModel
{
    public bool IsSwiped { get; set; }
}

And then we can:

<LLMListView IsSwipedMemberPath='IsSwiped' />

In this case we would have ability to use MVVM approach. (only when SwipeMode="Fix" I guess)

from llmlistview.

brookshi avatar brookshi commented on June 15, 2024

@f1nzer , Good idea, But why not use this to control SwipeMode for each ListViewItem directly,
Just like:

class ViewModel
{
    public SwipeMode SwipeMode { get; set; }
}

<LLMListView SwipeModeMemberPath='SwipeMode' />

SwipeMode.None and SwipeMode.Fix can cover your requirement.

from llmlistview.

f1nzer avatar f1nzer commented on June 15, 2024

@brookshi I don't think that it's good idea because it is a direct dependency to this control library (for example I'm using PCL targeting 3 different platforms).
In my opinion in most cases it's will be enough to provide bool property for this purpose (even SwipeMode enum in your example contains just 2 values 😄 ). Also it will cover needs of khmergeo: he can also change IsSwiped property (on viewModel) to false when needed.

from llmlistview.

brookshi avatar brookshi commented on June 15, 2024

OK. I agree with you. I will try to add it this weekend 😃 .

from llmlistview.

brookshi avatar brookshi commented on June 15, 2024

@f1nzer I had implemented this function, cheers 🍺

from llmlistview.

khmergeo avatar khmergeo commented on June 15, 2024

Thank you all beloved brothers,
Now I can do it with your issue.

from llmlistview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.