Dariusz Komosinski
a2c6bc1b7c
Remove usage of AddClassHandler that returns new lambda per invocation.
6 years ago
Steven Kirk
76840f463e
Don't hide Track during measure.
It causes it to stop being laid out. Instead hide the child controls.
6 years ago
Steven Kirk
9a9ef657e2
Ported Track layout code from WPF.
To fix problem with scrollbar layout when the scrollbar range was large.
NOTE: This commit adds `Track.IsDirectionReversed` and modifies the default direction of vertical tracks to be the reverse of before in order to match WPF.
6 years ago
Steven Kirk
2210b441a2
Moved attached layout code to Avalonia.Layout.
Also involved moving `Orientation` enum.
7 years ago
Steven Kirk
576cc91573
Make Pseudoclass method typed.
8 years ago
Steven Kirk
fad2e317ba
Make AffectsMeasure/Arrange/Render typed.
8 years ago
Steven Kirk
e49e682f9c
This Max shouldn't be needed.
8 years ago
Steven Kirk
7405cd7952
Match formatting of other block.
8 years ago
Steven Kirk
91edffd8d2
Fixed #1297
Handle rounding errors when calculating increase button arrange rect.
8 years ago
Dan Walmsley
eee063455d
[Track] remove redundant IsNaN check.
8 years ago
Dan Walmsley
db8cd568ac
[Scrollbar] Simplify the thumb height / thumb width logic.
8 years ago
Dan Walmsley
713933b7fb
[Scrollbar] dont try and arrange the thumb and buttons if the extent is zero.
8 years ago
Nikita Tsukanov
b963d68668
Try to respect DispatcherPriority when possible
8 years ago
Eli Arbel
aa45cccec4
Fix slider
9 years ago
Eli Arbel
aee42bad6c
Add scroll bar & slider buttons
9 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
13599a6ebc
Set Track's logical child.
To its Thumb. This fixes a problem with styling ScrollBar.
10 years ago
Steven Kirk
5489487131
Make LayoutManager global.
Also made a few other changes along the way:
- Add MaxClientSize to ILayoutRoot
- Store IRenderRoot in Visual and use that to calculate
IsAttachedToVisualTree
- Make Affects* methods take multiple properties
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
c052d389a9
Fix ScrollViewer.
Make various properties Direct properties, which gives them the correct
binding behavior.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
187d14c018
Added ScrollViewer XAML style.
ScrollBar not yet working.
10 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
aa147f0423
More stylecoping.
11 years ago
Steven Kirk
a267e1c070
DesiredSize doesn't need to be null.
11 years ago
Steven Kirk
c27ddbb17c
Removed ActualSize property - use Bounds instead.
11 years ago
Steven Kirk
c28c7e6b7a
Removed debug code.
11 years ago
Steven Kirk
43e1e3c168
Fixed final layout problem i'm aware of.
(Currently!)
11 years ago
Steven Kirk
a833a5e883
Stylecop fixes.
Also added solution-wide stylecop settings.
11 years ago
Steven Kirk
73ebfc9475
Hide scrollbars on ScrollViewer when not needed.
Also added an image size slider to test.
11 years ago
Steven Kirk
03c3a906e0
...aaannd again.
11 years ago
Steven Kirk
cb86dfde18
Fix initial scrollbar arrange.
11 years ago
Steven Kirk
23a8f9ab5d
Fix scrollbar values.
11 years ago
Steven Kirk
79c071a6d0
Added vertical scrollbar.
STILL VERY HACKY.
11 years ago
Steven Kirk
f99509fc11
Basic implementation of scrollbar.
Horizontal only so far. VERY HACKY.
11 years ago