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
7 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
7 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.
7 years ago
Joe Clapis
8bfbc10049
Added the ScrollToHome() and ScrollToEnd() methods to ScrollViewer.
7 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 .
9 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.
11 years ago
Steven Kirk
80c83a4d8a
Expose ScrollViewer CLR attached properties accessors.
11 years ago
Steven Kirk
d64a163ae9
Correctly update ScrollViewer viewport.
11 years ago
Steven Kirk
46b3ce2a01
Fix ScrollViewer.
Use calculated values for scrollbar properties where possible.
11 years ago
Steven Kirk
2577855b09
Correctly resolve attached properties.
Design.Width/Height was getting written to Width/Height. Should fix
#428 .
11 years ago
Steven Kirk
d25e057ccc
More WIP refactoring properties.
Compiles now but lots of tests failing.
11 years ago
Steven Kirk
c052d389a9
Fix ScrollViewer.
Make various properties Direct properties, which gives them the correct
binding behavior.
11 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
11 years ago
Steven Kirk
c810f95904
Don't ApplyTemplate on nested templated controls...
...during ApplyTemplate. This was so that ItemsControls could their find
ItemsPresenters nested in other templated controls. Instead use
IItemsPresenterHost to make the presenter register itself with its
TemplatedParent.
11 years ago
Steven Kirk
4ef9639f3e
Removed LINQ from MeasureOverride.
And removed empty MeasureOverride methods.
11 years ago
Steven Kirk
bfc010f757
Initial implementation of logical scrolling.
aka IScrollInfo in WPF.
11 years ago
Steven Kirk
6dc9ee31e0
Added doc comments for ScrollViewer.
11 years ago
Steven Kirk
fa872389c3
Make ScrollContentViewer.Offset get coerced.
Use the same logic as for ScrollViewer.
11 years ago
Steven Kirk
34cca87b99
Removed workarounds.
11 years ago
Steven Kirk
142eaa1c7c
More work on XAML styles.
- Added "Control[Property=Value]" selector handling
- Added hacks for ExpressionObserver not currently handing attached
properties
- Added ContentControl style
- Fixed ScrollBar and TextBox
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
6167bacf54
Moved to more standard filesystem layout.
Based on https://gist.github.com/davidfowl/ed7564297c61fe9ab814 and https://github.com/fsprojects/ProjectScaffold
11 years ago
Steven Kirk
09d6e22f5e
Fix scrollable controls in XAML.
11 years ago
Steven Kirk
ee8c211683
Renamed PerpexProperty coercion as validation.
As it can be used to invalidate a property change by throwing an
exception as well as coerce the value.
11 years ago
Steven Kirk
95d9e6f106
Stylecop fixes.
12 years ago
Steven Kirk
3441a64876
Removed unused members.
12 years ago
Steven Kirk
467dd1b318
Revert "Fix scrollviewer causing lockups."
This reverts commit 18e3900edc .
12 years ago
Steven Kirk
18e3900edc
Fix scrollviewer causing lockups.
Add a throttle to showing/hiding scrollbars to prevent them flashing on
and off.
12 years ago
Steven Kirk
adb9ce49d2
Make DropDown's dropdown a ListBox.
12 years ago
Steven Kirk
d4733c5332
Moved a bit of stuff around.
12 years ago
Steven Kirk
39691aecc3
Simplified TextBox scrolling.
12 years ago
Steven Kirk
542e81d129
Implemented TextBox scrolling.
12 years ago
Steven Kirk
688f6532c8
Added coercion to PerspexProperties.
And use it to make sure ScrollViewer's offset is in range.
12 years ago
Steven Kirk
af492b5d75
Started refactoring lyaout.
To make it faster. Currently all broken :/
12 years ago
Steven Kirk
7f90f5c8e6
Added mousewheel support to ScrollViewer.
12 years ago
Steven Kirk
a833a5e883
Stylecop fixes.
Also added solution-wide stylecop settings.
12 years ago
Steven Kirk
9ca5b930c7
Fixed ScrollViewer maths.
12 years ago