Comments (7)
I agree it would be great to make this work the same on desktop. However,
- WinUI does NOT support pull to refresh on desktop. Avalonia followed upstream WinUI here.
- Pointer presses are handled differently. This may be difficult to do.
from avalonia.
Actions that would fall under gestures aren't intuitive when using the mouse, especially when the user expects a refresh button or hotkey. The user wouldn't know that the gesture is available with the mouse pointer, even if it's implemented.
from avalonia.
Thanks for responding! I was also a contributor on Xamarin.Forms back in the days and never got a response anywhere near as fast - if ever!
Regarding 1: Well, maybe we can let the developer decide if he wants to opt in this feature. May be feasible to disable it by default... I don't know.
Regarding 2: Isn't avalonia following WPF "design"?
In WPF, there were "PreviewEvents" that you could hook into. That way, the refreshcontainer would not interfere with the "PointerPressed" event logic of the ListBox item.
from avalonia.
In WPF, there were "PreviewEvents" that you could hook into. That way, the refreshcontainer would not interfere with the "PointerPressed" event logic of the ListBox item.
We rarely need preview events. Most of the time (not always) tunnelling events is enough.
from avalonia.
I see. But, coming from WPF, [the docs on tunneling events)[https://docs.avaloniaui.net/docs/get-started/wpf/tunnelling-events] do not make things clear to me. I'm sorry.
Can I simply change the PullGestureRecognizer to subscribe to (what is it subscribed to anyways - the parent control of the scrollviewer?) "the thing" using a tunneling approach instead of ho it does it's thing currently?
It would really be great to have the PullGestureRecognizer handle this event before any other part of the UI
from avalonia.
Well... I disaggree - some "not so native" users think that anything that works on a tablet, also works on desktop. They simply cannot differentiate - at least that is our experience.
But I understand your concern.
Could we at least make this "overridable" in the PullGestureRecognizer, so we can cleanly override this behavior?
from avalonia.
The user isn't able to provide their own pull gesture recognizer since the code that handles gestures in PullRefresh is internal.
Solving this #13645 should make it possible to use touch gestures with mouse.
from avalonia.
Related Issues (20)
- `BindClass` method's `anchor` should be nullable
- Tunneling KeyDown Event not fired if TextBox has input Focus HOT 2
- Filtering of DataGrid bound to ObservableCollection HOT 2
- Styles regression - 11.0.x works, 11.1.x / master doesnt HOT 2
- DataBinding in XAML ignores access modifiers HOT 2
- CalendarDatePicker's dropdown popup should close when the calendar gets hidden HOT 1
- `[NotClientImplementable]` does not prevent builds HOT 8
- Mica backdrop not working when RenderingMode is set to Win32RenderingMode.Wgl HOT 4
- A way to access the raw input device states via `IInputManager` HOT 4
- SafeAreaPadding is zero when keyboard is in view HOT 1
- av_libglesv2.dll and ibSkiaSharp.dll reference an outdayed zlib and libjpeg-turbo HOT 2
- Can't use mvvm to bind HOT 2
- The ToDoList tutorial fails at the 'add a data context' step HOT 1
- (11.1-beta2) Compositor not always releasing DXGI mutex in Image interop HOT 5
- ListBox SelectionMode setting using Style HOT 4
- The application crashes if the same content is displayed twice in WindowNotificationManager HOT 1
- Some custom fonts in TextBox do not align with the center of the caret HOT 7
- Avalonia App failed to start on iOS 17.5 HOT 1
- Can't open dev tools arch linux + hyprland
- The DataGrid is not update with real-time changes HOT 4
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 avalonia.