robloo
46f38f42af
Fix comments with incorrect property reference
3 years ago
Emmanuel Hansen
87709b9606
add IsScrollInertiaEnabled setter and getter
3 years ago
Emmanuel Hansen
4a4ce0f839
fix scroll snap points attached properties
3 years ago
Emmanuel Hansen
78abd6d4b5
Add IsScrollInertiaEnabled attached property to scrollviewer
3 years ago
Emmanuel Hansen
e6c60ddfef
add regular snap points to virutalizing panel
3 years ago
Emmanuel Hansen
87b0325bf1
add comments
3 years ago
Emmanuel Hansen
4390f197d4
Add support for snap points to scroll viewer
3 years ago
Max Katz
59d7874b1d
Replace System.Reactive with internal extensions
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
4 years ago
robloo
d4540ed0e5
Add template part attributes to common controls
4 years ago
Collin Alpert
6d66358b87
Fix sentence in ScrollViewer
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Tim U
2941c3f635
Rename BubbleUpScrollOnEndReached to IsScrollChainingEnabled
4 years ago
Tim
26ca4c15ba
Implement `BubbleUpScrollOnEndReachedProperty`
- Add property as AttachedProperty, so it can be opt-in or opt-out
- Only bubble up the scroll event if the end is reached
- Make use of this Property in:
o ListBox
o TextBox
o TreeView
4 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
Miha Markič
97c33f432a
Applies spell checking on mostly comments, but also non public members and arguments
5 years ago
Dariusz Komosinski
a2dc40a14c
Allow for using ScrollViewer.AllowAutoHide as an attached property.
5 years ago
Max Katz
6327b0c72a
Change HorizontalScrollBarVisibility default
5 years ago
Steven Kirk
2a44d8b564
Initial implementation of UI automation.
Follows WPF/UWP API as closely as possible. Limited to win32 right now. Broken in many places.
5 years ago
Giuseppe Lippolis
ffcc0c1156
Allow ScrollViewer to scroll the content up, down, left and right by one page.
6 years ago
Dariusz Komosinski
41af8ec3a8
Remove strange using.
6 years ago
Dariusz Komosinski
8691aea157
Cleanup code and add doc comments.
6 years ago
Dariusz Komosinski
52606fa56d
Implement auto hide and sync scrollviewer this scrollbar visibility.
6 years ago
Dan Walmsley
beb4c30107
fix if statement logic .
6 years ago
Dan Walmsley
62bc5279ca
use nearly equals for deciding to raise scrollchanged event.
6 years ago
Steven Kirk
bc891efc13
Don't raise ScrollChanged if nothing changed.
And remove empty braces in test.
6 years ago
Steven Kirk
d4215a56ec
Restyle `ScrollViewer` in menus.
Make it appear as an up and down button at the top and bottom of the menu when needed. This follows WPF's menu scrolling behavior.
6 years ago
Steven Kirk
0f891dc0b7
Fix scrolling to non-uniform size items.
- Change the hack we're using to find the effective viewport in `ViewportManager`
- Unregister anchor candidates when bringing an item into view
- Adjust `ScrollContentPresenter` extent when tracking an anchor, if the adjustment causes the offset to go out of bounds of the extent
- Simplify coercing `Offset` in `ScrollViewer`
6 years ago
Steven Kirk
6124a3c505
Initial implementation of IScrollAnchorProvider.
On `ScrollContentPresenter`.
6 years ago
Steven Kirk
c3a5c48d6f
Raise ScrollChanged when layout updated.
To be consistent with WPF/UWP `ScrollChanged` should be raised when layout finishes updating, rather than when the individual properties are changed.
6 years ago
Steven Kirk
b14e1a999b
Share default small change value across controls.
6 years ago
Steven Kirk
aa5c1a6ed4
Added ScrollViewer.ScrollChanged event.
The API for `ScrollChangedEventArgs` is different to WPF's here, because:
- Avalonia's `ScrollViewer` exposes `Extent`, `Offset` and `Viewport` as `Size`/`Vector` structs whereas WPF exposes separate `double` values for the X and Y components for each of these
- The current values are not included in the event args: then can easily be read from the `sender`
- UWP doesn't expose these values at all
6 years ago
Steven Kirk
b9313c2dec
Fix large/small scroll in ScrollViewer.
For non-logical scrolling:
- Use 16 for small scroll size (value taken from WPF)
- Use viewport size for large scroll
For logical scrolling, use the `ScrollSize`/`PageScrollSize` defined on `ILogicalScrollable`. Note that this required a small breaking change to `ILogicalScrollable`.
Fixed #3245
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Joe Clapis
8bfbc10049
Added the ScrollToHome() and ScrollToEnd() methods to ScrollViewer.
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
7 years ago
Dariusz Komosinski
a2c6bc1b7c
Remove usage of AddClassHandler that returns new lambda per invocation.
7 years ago
Steven Kirk
5d813c9011
Scaffold IScrollAnchorProvider on ScrollViewer.
It doesn't do anything yet, but `ItemsPresenter` requires `ScrollViewer` to implement this interface.
7 years ago
Stano Turza
c05edaebdc
scrollbar PageUp/PageDown handling
8 years ago
Steven Kirk
8a80a724d7
Implement disabling of ListBox scrollbars.
Fixes #1344 .
8 years ago
Eli Arbel
aee42bad6c
Add scroll bar & slider buttons
9 years ago
Steven Kirk
f63a64e11b
Remove pointless code.
10 years ago
Steven Kirk
1b32a6aac3
Fixed unused member warnings.
That only show up on mono: seems the standard C# compiler silently
ignores most of these.
10 years ago
Steven Kirk
58cebab9a7
Don't round ScrollViewer values.
Not sure why this was being done, but it's almost certainly wrong.
10 years ago
Steven Kirk
d346b35ab7
Added IScrollable interface.
This is now the basic Extent/Offset/Viewport interface. Implemented by
ScrollViewer and ScrollContentPresenter.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
a6067c994e
CanScrollHorizontally shouldn't be an attached property.
10 years ago
Steven Kirk
80c83a4d8a
Expose ScrollViewer CLR attached properties accessors.
10 years ago
Steven Kirk
d64a163ae9
Correctly update ScrollViewer viewport.
10 years ago
Steven Kirk
46b3ce2a01
Fix ScrollViewer.
Use calculated values for scrollbar properties where possible.
10 years ago