Comments (6)
I don't have surface, so I can't do any test, But you can try to change the code in 'Utils.cs', use Windows.UI.ViewManagement.UIViewSettings.UserInteractionMode
instead of
public static bool IsOnMobile => AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Mobile";
from llmlistview.
I cannot remove public static bool IsOnMobile => AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Mobile"; as IsOnMobile is used another files. so i changed above code as
public static bool IsOnMobile => (AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Mobile" || AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Desktop" || AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Universal" || AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Team" || AnalyticsInfo.VersionInfo.DeviceFamily == "Windows.Xbox");
and tested it is working fine but i observed MasterListView.Refresh called multiple times and grid is loading multiple times
can you review this code and update the NUGet package so that same can be used in my application.
And how can i move the FloatButton to top of the listview and center of the grid instated of bottom .
from llmlistview.
It seems you want to use PullToRefresh in all devices, I think it's a particular requirement for you but not for common users, so sorry, I will not update NUGET packet for this change.
I suggest you add reference this library to your application directly, so you can change code as what you want.
MasterListView.Refresh called multiple times
I don't know, the code that you add will not cause this. you should add breakpoint and check CallStack.
move the FloatButton to top of the listview and center of the grid instated of bottom
For this, you can change code of 'theme/generic.xaml',
<Border x:Name="FloatButtonBorder"
Margin="0, 0, 30, 50"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Visibility="{TemplateBinding FloatButtonVisibility}">
to
<Border x:Name="FloatButtonBorder"
Margin="0, 50, 0, 0"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Visibility="{TemplateBinding FloatButtonVisibility}">
And change anim setting:
<VisualState x:Name="FloatBtnCollapse">
<Storyboard>
<DoubleAnimation Duration="00:00:00.2"
From="0"
Storyboard.TargetName="FloatButtonBorderTransform"
Storyboard.TargetProperty="Y"
To="120">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
<VisualState x:Name="FloatBtnVisible">
<Storyboard>
<DoubleAnimation Duration="00:00:00.2"
From="120"
Storyboard.TargetName="FloatButtonBorderTransform"
Storyboard.TargetProperty="Y"
To="0">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseIn" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
to
<VisualState x:Name="FloatBtnCollapse">
<Storyboard>
<DoubleAnimation Duration="00:00:00.2"
From="0"
Storyboard.TargetName="FloatButtonBorderTransform"
Storyboard.TargetProperty="Y"
To="-120">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseOut" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
<VisualState x:Name="FloatBtnVisible">
<Storyboard>
<DoubleAnimation Duration="00:00:00.2"
From="-120"
Storyboard.TargetName="FloatButtonBorderTransform"
Storyboard.TargetProperty="Y"
To="0">
<DoubleAnimation.EasingFunction>
<SineEase EasingMode="EaseIn" />
</DoubleAnimation.EasingFunction>
</DoubleAnimation>
</Storyboard>
</VisualState>
from llmlistview.
you want this PullToRefresh work like Android's(Material Design)?
The float button is just a button used to click/touch, not for pulling to display
from llmlistview.
Thanks for code. my listview doesn't contains any header so when there is no data in the listview users cannot be identified the listview and cannot be pulled to refresh. so they will use this refresh button to refresh the grid.
from llmlistview.
OK. May EmptyDataTemplate is another choice. you can check it in EmptyDataPage in demo.
<ctrl:LLMListView.EmptyDataTemplate>
<DataTemplate>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" TextWrapping="Wrap"
Text="List is empty" />
</DataTemplate>
</ctrl:LLMListView.EmptyDataTemplate>
from llmlistview.
Related Issues (20)
- Item Right Swipe click on button "Done" to swipe back HOT 10
- 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
- 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.