Benedikt Stebner
967decd49b
Only call ScrollIntoView when the user moved the caret
4 years ago
Benedikt Stebner
63998418e3
Revert BindingMode change
4 years ago
Benedikt Stebner
f3740dd214
Fix vertical caret navigation caret update
4 years ago
Benedikt Stebner
525af8f869
Fix selection rect merge
Fix ime rect update
4 years ago
ahopper
571161cc0e
fix 32 bit raspberry pi session manager seg fault
4 years ago
Pursuit
09ac27803f
Minimization bugfix on Windows
4 years ago
Emmanuel Hansen
ecb0de2c32
Add Support for Overwrite Prompt option in save dialog ( #7531 )
Add support for overwrite prompt option
4 years ago
Andrii Kurdiumov
0dca903105
Fix AOT incompatible code ( #7534 )
* Fix AOT incompatible code
Use code patterns which are AOT-friendly. That improves R2R and Native AOT scenarios
4 years ago
Olivier DALET
e26d9d796c
Fix #7519 - Reset fb and depth buffer Ids once they are deleted
4 years ago
Dominik Matijaca
b040ac5414
ItemsControl: WrapSelection ( #6286 )
Add support for selection wrapping for ListBox, ItemsControl, ComboBox.
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
Co-authored-by: Takoooooo <tako0qq@gmail.com>
Co-authored-by: Steven Kirk <grokys@gmail.com>
4 years ago
Benedikt Stebner
3d992ce75b
Fix selection when the mouse is moved underneath the bounding box
4 years ago
Benedikt Stebner
3bb3c4b98a
Invert MoveCaretHorizontal for FlowDirection RightToLeft
4 years ago
Dariusz Komosinski
361bfeb1a0
Foreground can be nullable as well.
4 years ago
Dariusz Komosinski
af97568819
Text can be nullable.
4 years ago
Dariusz Komosinski
27f920a79d
Fixed ItemContainerGenerator usages.
4 years ago
Dariusz Komosinski
9dca8b8321
Update comment as well.
4 years ago
Dariusz Komosinski
5e5389d74c
ItemContainerGenerator cannot be null
4 years ago
Benedikt Stebner
74be5c807d
Merge selection rects if they overlap
4 years ago
Benedikt Stebner
786d3ae670
Fix DataGrid ShowCaret on focus
4 years ago
Benedikt Stebner
f3a6e88a72
Fix webapp dependency vulnerabilities
4 years ago
Steven Kirk
cccbbc44c5
Clarify the return value of `StripAccessKey`.
4 years ago
Steven Kirk
d0d86e28c1
Added remaining nullable annotations after merge.
4 years ago
Steven Kirk
b470fcc476
Handle nullability in new TextBox/TextPresenter.
Made the decision to return a null `TextLayout` when `TextPresenter.Foreground` is null for consistency with our other usages of null brushes, though not 100% sure this is correct.
4 years ago
Benedikt Stebner
79298e3375
Fix nit
4 years ago
Benedikt Stebner
4bac7fd953
Fix HitTestTextRange bidi
4 years ago
Benedikt Stebner
ce664fd224
Update _navigationPosition when MoveCaretToTextPosition is used
4 years ago
Benedikt Stebner
cda32a83b4
Keep _presenter reference
4 years ago
Benedikt Stebner
c640bc21c6
Fix failing tests
4 years ago
Benedikt Stebner
27c7a5c724
Fix issues mentioned during review
4 years ago
Steven Kirk
8ff251ec96
Actually dispose PlatformImpl.
4 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`.
4 years ago
Steven Kirk
f71893e42d
Relax constraint on ITemplate<T>.
4 years ago
Steven Kirk
402a262502
Remove usages of Contract.Requires.
4 years ago
Steven Kirk
d80cfbca18
Remove #nullable directives.
4 years ago
Steven Kirk
2d251b04fb
Fix nullability error from Avalonia.Web.Blazor.
4 years ago
Steven Kirk
7f774a130f
Fix up nullable issues in Avalonia.Diagnostics.
4 years ago
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Steven Kirk
ad0a813304
Nullability tweaks in lower-level libraries.
4 years ago
Emmanuel Hansen
9a5fe6cbdf
fixup
4 years ago
Max Katz
4d866b544c
Replace shared project with Avalonia.PlatformSupport
4 years ago
Benedikt Stebner
6fcba32bbf
Fix TryGetShapeableLength
4 years ago
Benedikt Stebner
3fdfdd64d2
Fix font fallback
Fix TextPresenter measure
4 years ago
Tim U
fb4c82aa84
Use AddOwner for ScrollContentPresenter
4 years ago
Tim U
2941c3f635
Rename BubbleUpScrollOnEndReached to IsScrollChainingEnabled
4 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.
4 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
4 years ago
Benedikt Stebner
3f32f8e390
Fix GetLineIndexFromCharacterIndex
4 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
4 years ago
Sergey Mikolaitis
fdb333d154
Fix Monitor.Enter in finally
4 years ago
robloo
a0331c6007
Undo CanExecuteChanged changes
4 years ago