Benedikt Stebner
c640bc21c6
Fix failing tests
5 years ago
Benedikt Stebner
27c7a5c724
Fix issues mentioned during review
5 years ago
Steven Kirk
8ff251ec96
Actually dispose PlatformImpl.
5 years ago
Steven Kirk
888cc33170
Fix failing unit tests in debug mode.
#7369 introduced a validating layer over `WindowBase.PlatformImpl` that is only enabled in debug mode. This validating layer was causing unit tests to fail in debug mode but not on CI which runs tests in release mode.
Fix the problems:
- `PopupRoot` was not correctly disposing itself on `Dispose` - make it call `HandleClosed` in order to perform the same steps as when the popup is closed via other means
- Some unit tests try to access the `PlatformImpl` to get hold of a mock. Added `ValidatingWindowImpl.Unwrap` to allow this
- `ValidatingWindowBaseImpl.Activated` was setting the wrong property on the wrapped `PlatformImpl`.
5 years ago
Steven Kirk
f71893e42d
Relax constraint on ITemplate<T>.
5 years ago
Steven Kirk
402a262502
Remove usages of Contract.Requires.
5 years ago
Steven Kirk
d80cfbca18
Remove #nullable directives.
5 years ago
Steven Kirk
2d251b04fb
Fix nullability error from Avalonia.Web.Blazor.
5 years ago
Steven Kirk
7f774a130f
Fix up nullable issues in Avalonia.Diagnostics.
5 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
5 years ago
Steven Kirk
ad0a813304
Nullability tweaks in lower-level libraries.
5 years ago
Emmanuel Hansen
9a5fe6cbdf
fixup
5 years ago
Max Katz
4d866b544c
Replace shared project with Avalonia.PlatformSupport
5 years ago
Steven Kirk
72beb30f02
Cast to interface instead of concrete type.
`PlatformImpl` may be a `ValidatingTopLevelImpl`.
5 years ago
Benedikt Stebner
6fcba32bbf
Fix TryGetShapeableLength
5 years ago
Benedikt Stebner
3fdfdd64d2
Fix font fallback
Fix TextPresenter measure
5 years ago
Tim U
fb4c82aa84
Use AddOwner for ScrollContentPresenter
5 years ago
Tim U
2941c3f635
Rename BubbleUpScrollOnEndReached to IsScrollChainingEnabled
5 years ago
Tim
c7560588fb
use `ScrollViewer.GetBubbleUpScrollOnEndReached` in `DataGrid`
DataGrid handles the scrolling by it's own and not via ScrollViewer, so we need handle it there as well.
5 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
5 years ago
Benedikt Stebner
3f32f8e390
Fix GetLineIndexFromCharacterIndex
5 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
5 years ago
Sergey Mikolaitis
fdb333d154
Fix Monitor.Enter in finally
5 years ago
robloo
777cea8c43
Hide ICommandSource.CanExecuteChanged publicly like Button
5 years ago
robloo
a0331c6007
Undo CanExecuteChanged changes
5 years ago
robloo
94de79f243
Remove SplitButtonSecondaryButtonIconGeometry resource
5 years ago
robloo
f03b2f64f9
Require Alt+Down to open flyout (closer to WinUI now)
5 years ago
robloo
4dddf12392
Use InternalIsChecked
5 years ago
robloo
37c31bbd89
Fixed some formatting and comments
5 years ago
robloo
1605d3a702
Add back wanted SplitButton changes after reverting commits
5 years ago
robloo
83720e9218
Revert "Minor refactoring to Button noticed when adding SplitButton"
This reverts commit c0bb7efa12 .
5 years ago
robloo
ee36313c3e
Revert "Move more Button property changed handling into OnPropertyChanged override"
This reverts commit 853d4140a3 .
5 years ago
robloo
e730e15d66
Remove SplitButton.cs after cherry-pick
5 years ago
robloo
d8e071039b
Move more Button property changed handling into OnPropertyChanged override
5 years ago
robloo
fe11e4f2c7
Minor refactoring to Button noticed when adding SplitButton
5 years ago
Emmanuel Hansen
4bcd5f5dd8
add density style option in Fluent Theme provider
5 years ago
Dan Walmsley
1bbe38c34f
update copyright year
5 years ago
Emmanuel Hansen
280eef2d23
maintain key down event, add extra cases to handle shift and control modifiers
5 years ago
Emmanuel Hansen
abfb2ed462
Trigger control inspection on key up
5 years ago
Max Katz
07e2952750
SplitButton Avoid unnecessary pseudoclasses by using Avalonia-friendly approaches
5 years ago
robloo
8a529a6768
Add Default theme for SplitButton
5 years ago
robloo
67cfbe3732
Simplify style by integrating background and root Borders
5 years ago
robloo
7773a1d5b8
Remove ClipToBounds and set CornerRadius on each child
This will remove the clipping work-around and also better support future styles that may need border in children (Fluent v2)
5 years ago
robloo
3c8533467d
Use existing button property definitions
5 years ago
robloo
9b1dd0dca0
Copy over some Flyout logic from Button
5 years ago
robloo
853d4140a3
Move more Button property changed handling into OnPropertyChanged override
5 years ago
robloo
a57bdbc254
Implement secondary button span but disable it with commented reasons
5 years ago
Max Katz
fd3c44bb81
Ensure menu children are closed on menu flyout presenter detached
5 years ago
robloo
1a40c45ec9
Fix handling of shared flyouts
5 years ago
robloo
c2cebb32fa
Pulled out 'child' Primary/SecondaryButton style
5 years ago