Steven Kirk
c682dde63a
Allow specifying DevTools key gesture.
Fixes #1641
7 years ago
Steven Kirk
96c1670197
Remove previous hack.
Indroduced in f09683cf93 .
Was probably caused by the issue fixed in e73a5a6357 .
7 years ago
Steven Kirk
e73a5a6357
Fix another facepalm in ItemsRepeater.
`Measure` and `Arrange` were swapped.
7 years ago
Steven Kirk
5b6a44bd72
Fix facepalm in ItemsSourceView.
Don't construct a new `List` unless the source isn't already an `IList`.
7 years ago
Nikita Tsukanov
62bc60bee3
[DirectFB] Added configurable scaling support
7 years ago
Nikita Tsukanov
07ed194c9d
Review comments
7 years ago
Nikita Tsukanov
ef39bf4e4e
Remove misleading braces
7 years ago
Stano Turza
3bd87c0d30
Fix ButtonSpinner hit testing
7 years ago
Stano Turza
7ab413be4b
Fix Combobox hit testing
7 years ago
artyom
32aea583b1
Don't throw when in design mode
7 years ago
Steven Kirk
0dce4cfc6f
Set capacity seeing as we know it.
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
cdb486fe23
Fix NRE in VisualNode.SortChildren.
`_children` may be null. In addition if there are < 2 children, there's no sorting to be done.
7 years ago
Steven Kirk
a389e21dc0
Fix IsInsidePopup logic.
7 years ago
Steven Kirk
c65b5de959
Move setting popup TemplatedParent...
...out of `PopupRoot` and into `Popup`. Fixes styling problems in `Popups` hosted in control templates.
7 years ago
Steven Kirk
6caa06f52b
Remove PopupContentHost.
It's no longer needed now the bug fix in 669c6511d6 is in place.
7 years ago
Steven Kirk
669c6511d6
Reset inheritance parent in ContentPresenter.
Previously a dangling reference to `ContentPresenter` was left in place in the ex-child control's `InheritanceParent`. When the child is removed from the `ContentPresenter`, reset the value to the control's logical parent.
7 years ago
Steven Kirk
2697104dbb
Make `PopupHost` a templated control.
7 years ago
Nikita Tsukanov
81ac23066e
Added custom hit-testing for ImmediateRenderer to OverlayLayer
7 years ago
Nikita Tsukanov
52aff15ed3
OverlayLayer is now a glorified Canvas
7 years ago
Nikita Tsukanov
04bc3a88b1
Defensive check for Menu==null
7 years ago
Dariusz Komosinski
9b1dd5de17
Do not spam with collection changed events.
7 years ago
Dariusz Komosinski
961bade055
Do not allocate as much in TextBlock and TextPresenter constructors.
7 years ago
Nikita Tsukanov
1c111aef6c
watwut
7 years ago
Nikita Tsukanov
f9561260a3
IPopupImpl is now optional advanced feature
7 years ago
Steven Kirk
e82d67f664
Prevent NRE in VisualNode.HitTest.
Not sure how this is happening but judging by #2758 , it can happen. Defensively check for a null `Item` to prevent this.
Fixes #2758 .
7 years ago
Steven Kirk
4b34f4770a
Revert "Improve Button and ToggleButton styling"
7 years ago
Nikita Tsukanov
7480f1a4f3
Debug symbol magic
7 years ago
Nikita Tsukanov
80b15914ca
Build
7 years ago
Nikita Tsukanov
f6e752c5fb
Dead code
7 years ago
Steven Kirk
d0a6f48015
Added `Gestures.RightTapped`.
7 years ago
Steven Kirk
6809fe11d2
Raise tap gestures even if press/release were handled.
Also don't raised tapped events for right button clicks.
Fixes #2730 .
7 years ago
Nikita Tsukanov
8c048ec18d
Removed android popup implementation since it was broken anyway
7 years ago
Nikita Tsukanov
099a568d95
Removed old debug code
7 years ago
Nikita Tsukanov
7185a34568
Pass the non-translated size to the popup
7 years ago
Nikita Tsukanov
ac1dc44a95
Don't scale the screen in ManagedPopupPositionerPopupImplHelper
7 years ago
Nikita Tsukanov
fafd27243f
Fixed tests
7 years ago
Nikita Tsukanov
e5943a3523
Dispose GL drawing session if we were unable to create a drawing context
7 years ago
Nikita Tsukanov
79cf3e5cea
Completely re-create PopupRoot on reopening Popup
7 years ago
Nikita Tsukanov
8e5c8fee07
Somewhat fixed tests
7 years ago
Nikita Tsukanov
9343ba4c23
Wired up the popup positioner
Tests are failing because they are trying create popups out of a thin air
7 years ago
Nikita Tsukanov
880a2269fd
IPopupPositioner + managed implementation
7 years ago
Nikita Tsukanov
3e786dbadb
PixelVector and stuff
7 years ago
Nikita Tsukanov
35f64af761
Make toplevels responsible of creating popups
7 years ago
Steven Kirk
0e7f4cac81
Ensure control is invalidated on ZIndex change.
7 years ago
Steven Kirk
bc5a101faf
Render changes to child order/zindex.
Fixes #2714 .
7 years ago
Steven Kirk
32d7938c7c
Added failing tests for #2714 .
7 years ago
Steven Kirk
397d972db8
Auto-select first item on `Reset`.
When a reset is received by `SelectingItemsControl` which has `AlwaysSelect == true`, select the first item if present.
Fixes #2754
7 years ago