Dan Walmsley
69fa0f7f28
stackpanel copes with non-visible controls when arranging.
7 years ago
Steven Kirk
b4d7d03afd
Constrain to availableSize in MeasureCore.
#2431 erroneously removed the `.Constrain(availableSize)` call in `Layoutable.Measure`. Now that the WPF source is available, I can see i that WPF does in fact constrain measure to availableSize and Grid relies on this.
Put constraint back in, undo the changes to the controls changed in #2431 (`StackPanel`, `Image`) and update the expected test results based on cross-checks with WPF in https://github.com/wieslawsoltes/WpfUnitTests/pull/1 .
7 years ago
Steven Kirk
580bf42afa
Call ArrangeChild in StackPanel.
So that derived classes can override the arrangement (needed for `VirtualizingStackPanel`).
7 years ago
Steven Kirk
c99f553c18
Fix merge error.
`Orientation` was moved to `Avalonia.Layout`.
7 years ago
Steven Kirk
643495fba7
Undo unrelated change to StackPanel.
7 years ago
Steven Kirk
2210b441a2
Moved attached layout code to Avalonia.Layout.
Also involved moving `Orientation` enum.
7 years ago
wieslawsoltes
66c813c420
Initial port of WPF StackPanel
7 years ago
wieslawsoltes
710215ddb2
Revert StackPanel
7 years ago
Steven Kirk
ece1b3e334
Initial import of ItemsRepeater from the WinUI library.
https://github.com/microsoft/microsoft-ui-xaml
7 years ago
Wiesław Šoltés
4ae22f579e
Fix license headers
7 years ago
Wiesław Šoltés
ebb8d43727
Update StackPanel.cs
7 years ago
Wiesław Šoltés
4cf502e61b
Update StackPanel.cs
7 years ago
Wiesław Šoltés
af69f80120
Update StackPanel.cs
7 years ago
Wiesław Šoltés
705ebc2675
Update StackPanel.cs
7 years ago
Wiesław Šoltés
895f458fa9
Update StackPanel.cs
7 years ago
Wiesław Šoltés
39a696b985
Fix tests
7 years ago
Wiesław Šoltés
8304eaab85
Fix
7 years ago
Wiesław Šoltés
1c2e270155
Initial port of WPF StackPanel
7 years ago
Dan Walmsley
5a66dee1bb
revert stackpanel changes
7 years ago
José Pedro
823a3559c7
Fixed stack panel children spacing.
7 years ago
Dan Walmsley
7f21cc426d
use a seperate control for stackpanel reversing until we have flow control available.
7 years ago
Dan Walmsley
4f43898d19
make stackpanel reversable.
7 years ago
Steven Kirk
7ac3556983
Fixed StackPanel arrange pass.
Now follow's WPF's behavior better. In order to get the desired outcome, the `.Constrain(availableSize)` call in `Layoutable.Measure` had to be removed. Controls that relied on that (`Image` and `ViewBox`) have to now call `Constrain` themselves.
Fixes #2350
7 years ago
Steven Kirk
fad2e317ba
Make AffectsMeasure/Arrange/Render typed.
8 years ago
Steven Kirk
1293e9af8d
Implemented Menu interactions.
8 years ago
Dan Walmsley
5062f823b3
rename stackpanel Gap property to Spacing property.
8 years ago
Luis Silva
7039b32a79
add/sub gap behaviour based on visibility
Only adding and subtracting the gap value if child is visible.
Arranged height/width adds and subs gap only if at least one child is visible.
8 years ago
Dan Walmsley
eb5a354d62
[StackPanel] Gap value is not added to the measured width or height after the last child.
9 years ago
José Pedro
7cb4485dfb
Added Orientation and IsIndeterminate properties to ProgressBar.
Moved the Orientation enum to a separate file.
9 years ago
Steven Kirk
22b495b1ac
Fix directional nav for non-virtualized lists.
Except Page Up/Down - these will need some extra code.
10 years ago
Steven Kirk
d0942f84a9
FocusNavigationDirection => NavigationDirection
And added page up/down.
10 years ago
Steven Kirk
acdf599dec
Initial impl. of scrolling with arrow keys.
- Currently only vertical implemented
- Doesn't handle partially visible items at end of list
10 years ago
Steven Kirk
b91d8781d8
WIP
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
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
3870c4792f
Refactored tab navigation.
In preparation for directional navigation.
11 years ago
Steven Kirk
eabf674027
Move more stuff from Control to IControl.
To do this, added the PropertyBag interfaces from ideas branch.
11 years ago
Steven Kirk
486da2103e
Documented StackPanel.
11 years ago
Steven Kirk
a267e1c070
DesiredSize doesn't need to be null.
11 years ago
Steven Kirk
c29cac0b9f
Improve directional naviation a bit.
In SelectingItemsControl. Still not completely there as we should do a
visual search in the absence of INavigablePanel (e.g. for Canvas, Grid).
Fixes half of #44 .
11 years ago
Steven Kirk
76ba899dbd
Make templates etc get applied on measure.
Instead of when iterating visual children. This because everything is
likely to be set up by that point.
11 years ago
Steven Kirk
3e3d8296af
Fix layout a bit.
11 years ago
Steven Kirk
79c071a6d0
Added vertical scrollbar.
STILL VERY HACKY.
11 years ago
Steven Kirk
bfadaac5d9
Non-building checkpoint in MAJOR refactor.
12 years ago
Steven Kirk
7251e9e55b
Added TreeViewItem.IsExpanded.
12 years ago
Steven Kirk
b9b7ff8ba4
Make default StackPanel orientation Vertical.
12 years ago