Steven Kirk
6ea751f893
Make enum/int conversion work.
3 years ago
Steven Kirk
15dc9af0c4
Added failing test for implicit conversion.
3 years ago
Steven Kirk
c4b652016a
Log warnings for converter exceptions.
3 years ago
Steven Kirk
3e2d0a5ec0
Use consistent wording for binding warnings.
"Could not convert" instead of "Cannot convert".
3 years ago
Steven Kirk
00a619fe22
Log errors for failed conversions.
3 years ago
Steven Kirk
2f0e075d96
Don't log errors for named control bindings...
...on elements which aren't yet rooted.
3 years ago
Steven Kirk
6bb9f92446
Log errors from property accessors.
3 years ago
Steven Kirk
036048c9f2
Move logging to BindingExpression.
As `BindingExpression` now has enough information to decide when it's appropriate to log an error/warning or not.
Fixes #5762
Fixes #9422
3 years ago
Steven Kirk
fb7f8a6d98
Initial refactor of binding infrastructure.
- `ExpressionObserver` has been removed and its functionality merged with `BindingExpression`
- `BindingExpression` handles all types of `BindingMode` itself; doesn't require `BindingOperations.Apply` to set up a separate observable for `TwoWay/`OneWayToSource` bindings
- This allows us to fix some long-standing issues with `OneWayToSource` bindings
- Expression nodes have been refactored
- No longer split between `Avalonia.Base` and `Avalonia.Markup`
- Categorize them according to whether they use reflection or not
A few tests are failing around binding warnings: this is because the next step here is to fix binding warnings.
3 years ago
Steven Kirk
ac23404fea
WIP: Benchmarks
3 years ago
Vladimir Drobyshev
206b5fd1de
Fix - TextPresenter ignores FontStretch property ( #12947 )
* Test
* Fix
3 years ago
Julien Lebosquain
3515b99a92
Fix VirtualizingStackPanel and nth-child for the currently realizing item container ( #12957 )
* Added failing tests for VirtualizingStackPanel and nth-child
* VirtualizingStackPanel: support index of currently realizing item
3 years ago
workgroupengineering
1cb271fb37
fix: Xaml Compiler error when code-behind class contains a `DllImport` method ( #12882 )
* fix: Avalonia.Generators not found
if you put SourceGenerators.props in a project with path are like this:"C:\GitHub\Avalonia\sample\mobile\android\ANoteSample\ANoteSample.csproj", the Compiler is not able to found `Avalonia.Generators`
* test: Add test #10046 Xaml Compiler error when code-behind class contains a DllImport method
* fix: Xaml Compiler error when code-behind class contains a DllImport method
* fix: Address Review
* fix: ValidateApiDiff has thrown an exception
3 years ago
Mihnea Rădulescu
7b67fda0eb
Fix issue 4427 - System.InvalidOperationException: Default font family name can't be null or empty ( #12817 )
* Fix issue 4427 - System.InvalidOperationException: Default font family name can't be null or empty
* Updated FontManager
* Removed Linq usage from FontManager
---------
Co-authored-by: Mihnea Rădulescu <>
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
3 years ago
Benedikt Stebner
cb461ab043
Allow multiple font sources per FontFamily and make sure combinations of system and embedded fonts can be used ( #12871 )
3 years ago
Benedikt Stebner
fac9e55f69
Introduce PixelFormatWriter ( #12807 )
Introduce PixelFormatTranscoder
Introduce Bitmap.CopyPixels that transcodes pixel and alpha format
3 years ago
Julien Lebosquain
a2b7ca47e5
Fix interpolator being called after last animation iteration ( #12781 )
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
3 years ago
Julien Lebosquain
b9c8e71981
Ensure GlyphRunImpl has consistent bounds ( #12765 )
* Add GlyphRun InkBounds failing test
* Ensure GlyphRunImpl has consistent bounds
3 years ago
Steven Kirk
45e5d25ccf
Implemented Geometry.GetWidenedGeometry.
3 years ago
Benedikt Stebner
21cc95a014
Fix failing test
3 years ago
Emmanuel Hansen
a030d29d15
add failing test
3 years ago
Steven Kirk
03ff228a6d
Preserve container themes set locally.
3 years ago
Steven Kirk
f347eaf711
Accept base TargetType in ItemContainerTheme
3 years ago
Steven Kirk
b024bb463b
Add tests for #12620 .
One failing.
3 years ago
Bill Henning
16ab9c595c
Fix for TextBlock.TextDecorations not inheriting down to inlines.
3 years ago
Nikita Tsukanov
96da4f0699
When calculating geometry bounds take into account parameters that affect geometry bounds
3 years ago
Boyd Patterson
932b40b19b
Added unit tests for TextBox to verify MaxLines property assigns the ScrollViewer.MaxHeight based on line height.
3 years ago
stepan_govorko
f5c93a50ab
added more comments
3 years ago
stepan_govorko
77dc35bf46
Introduced counting of rendered visuals in ServerCompositionVisual and added relevant unit tests in CompositorInvalidationClippingTests. The new tests ensure that visuals that are not in dirty rect are rendered correctly with different ClipToBounds and Clip geometry parameters.
3 years ago
adirh
038c963750
Fixed unit test
3 years ago
adirh
5f7d823b59
Added unit test
3 years ago
flexxxxer
5b182890f3
Added unit tests for non-disposable DataContext issue ( #12123 )
3 years ago
flexxxxer
c418442d13
Revert "unit tests added"
This reverts commit b0f6d17c55 .
3 years ago
flexxxxer
b0f6d17c55
unit tests added
3 years ago
flexxxxer
9ba9414c22
unit test for issue added
3 years ago
daniel
953ec9b3ef
Remove BypassLogicalChildrenManagement and use OnPropertyChanged
3 years ago
Benedikt Stebner
bd3f097895
Adjust behavior to match what WPF expects
3 years ago
Benedikt Stebner
1e64c51879
Adjust test
3 years ago
Benedikt Stebner
9c94158ae7
Make sure TextLine.GetCharacterHitFromDistance for mixed buffers
3 years ago
mrxx99
0ce9a6ed87
Fix creating fields for attached properties called name. closes #12283
3 years ago
Julien Lebosquain
515e0843de
Handle ScrollContentPresenter extent rounding errors
3 years ago
Benedikt Stebner
250743d786
Rework GetNext/PreviousCharacterHit
3 years ago
Steven Kirk
f89a0b2ac9
Added failing test for #11220 .
3 years ago
daniel
abc7eea336
simplifies the first test
3 years ago
daniel
add676efab
Add failing tests
3 years ago
Julien Lebosquain
237e4cba69
Fix InlineDictionary enumeration when an array is used
3 years ago
Vladimir Kulikov
0013f44444
Setting child of TestRoot once
3 years ago
Daniil Pavliuchyk
0e038492f7
Do not set Window Startup Location multiple times
3 years ago
AtomCrafty
42ad2fd46e
add regression test for AutoCompleteBox with MinimumPrefixLegth=0
3 years ago
Nikita Tsukanov
8680c612fd
OSX rendering refactoring
3 years ago