Comments (10)
Ok. I will add a sample for this function, please wait a moment
from llmlistview.
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.
@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.
@f1nzer , Is "SwipedMemberPath" used to determine the SwipeMode for ListViewItem?
from llmlistview.
@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.
@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.
@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.
OK. I agree with you. I will try to add it this weekend 😃 .
from llmlistview.
@f1nzer I had implemented this function, cheers 🍺
from llmlistview.
Thank you all beloved brothers,
Now I can do it with your issue.
from llmlistview.
Related Issues (20)
- Is there anyway to bind a mvvm item property to enable/disable the item right swipe? HOT 5
- Performance Issue with 200 contacts loaded? HOT 4
- I can't set ItemContainerStyle HOT 5
- Group and swipe HOT 2
- LLMListView is creating self header? HOT 5
- Changing the background color of the item when selected HOT 4
- ListView.ScrollToView() is not working HOT 2
- How to add alternate row style HOT 2
- Pull to refresh is not working in Tablet or Surface HOT 6
- In SwipeMode Fix ResetSwipe after clicking on Edit HOT 3
- Load More HOT 1
- Reordering conflict HOT 2
- Grouping with ListView HOT 1
- How to use LLMListViewItem.RightSwipeMaxLength Property in MVVM usecase HOT 5
- How to hide PullToRefreshIndicator and ProgressBarIndicator in LLMListView
- Full screen width item inside the LLMListView HOT 1
- Fixed Right Swip issue in RTL Direction Flow HOT 20
- System.UnauthorizedAccessException_80070005
- EmptyDataTemplate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llmlistview.