Steven Kirk
3bc1594dca
Revert "Removed unused field."
This reverts commit 270f9718b8 .
6 years ago
Steven Kirk
89ba4a6327
Prevent tests interfering with other tests.
6 years ago
Steven Kirk
7f26635efa
Wire up validation/coercion for attached properties.
6 years ago
Steven Kirk
270f9718b8
Removed unused field.
6 years ago
Dariusz Komosiński
1e673eca90
Add failing unit test for init issue.
6 years ago
Dariusz Komosinski
35f26081c6
Implement events for ToggleButton.
6 years ago
Andrey Kunchev
dd864dd5c9
add a test for same situation for direct2d
6 years ago
Andrey Kunchev
44fa2152bd
add failing test for #3376
6 years ago
Steven Kirk
11a714dbf7
Use Size not PixelSize in ImageTests.
`Image` now bases the size of a bitmap on `IImage.Size`.
6 years ago
Steven Kirk
a8e75384b7
Added IImage interface.
`IImage` represents a base interface for raster and vector images. `IBitmap` now implements this interface and `DrawingContext` accepts this interface in `DrawImage`.
The interface defines a `Draw` method which introduces a level of indirection for drawing the image through the image itself.
Renamed `IDrawingContextImpl.DrawImage` to `DrawBitmap` as this only handles drawing bitmap images. `Bitmap` now calls this method directly on the platform implementation.
6 years ago
Steven Kirk
062ec0ccb6
Added Image.StretchDirection.
But not yet implemented.
6 years ago
Steven Kirk
a0f72ff47c
Added failing tests for #3371 .
6 years ago
Steven Kirk
3a914c282b
Don't declare property fields AvaloniaProperty<>.
Instead use `StyledProperty<>`.
6 years ago
José Pedro
6fabfdc561
Fixed BindingExtension.TargetNullValue default value.
6 years ago
Luis von der Eltz
d88640b1ea
!B Fixing test
6 years ago
Luis v.d.Eltz
e89d5af718
Adding unit test
6 years ago
Steven Kirk
14ed1fd571
Added failing test for #3328 .
6 years ago
macpawluk
b773238c0e
Unit tests covering issues of ImmediateRenderer with transformed children
6 years ago
Steven Kirk
a70da659f6
Reafactor logical tree attach/detach events.
- When detaching set `Parent` to `null` before raising the `DetachedFromLogicalTree` event
- To do this, we need to store the logical root in the control so that e.g. a child control can be detached in a `DetachedFromLogicalTree` handler
- Add `Source` and `Parent` properties to `LogicalTreeAttachmentEventArgs` to give more context on what caused the attachment/detachment
6 years ago
Steven Kirk
39fd3af9ca
Added sanity test for logical parent.
Allows early detection of issue #3328 .
6 years ago
Andrey Kunchev
b1cc2a1d9c
enable valid xamlil test (disabled before because of portable.xaml)
6 years ago
Andrey Kunchev
73be933bd0
add failing test for ControlTemplate can't be added to resources #3145
6 years ago
Andrey Kunchev
97f57c7bec
add test for style resources
6 years ago
Andrey Kunchev
a04d0b7bbb
add failing test for ControlTemplate don't respect TargetType
6 years ago
Dariusz Komosinski
9e812f24b9
Add HitTestFirst that allows for hit testing first matching visual. Implement better enumerator that can be used for both first and multiple hits.
6 years ago
Benedikt Schroeder
7901f6f09f
Fix some comments and GlyphRun.GetDistanceFromCharacterHit
6 years ago
Benedikt Schroeder
ab5e062deb
Add GlyphRun support
6 years ago
Benedikt Schroeder
e704823ced
Introduce a struct enumerator implementation for ReadOnlyList that can be reused
6 years ago
Steven Kirk
601abac056
Set resource parent for merged dictionaries.
Allows `DynamicResource` and `StaticResource` in merged resource dictionaries to work properly.
Fixes #3323
6 years ago
Steven Kirk
c2f3f3fdf2
Added failing tests for #3323 .
6 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
6 years ago
Steven Kirk
ce5f884e08
Added failing test for #3321 .
6 years ago
Benedikt Schroeder
527d8376d7
Combine draw and fill rectangle drawing operation
6 years ago
Steven Kirk
b8b8e3f8cc
Fix IWindowImpl mocks to call Close on Dispose.
6 years ago
Jumar Macato
e23da28731
Remove obsolete unit test.
6 years ago
Steven Kirk
1616e76735
Added benchmarks for property validation/coercion.
6 years ago
Steven Kirk
0f04f4d01a
Add WPF-style property coercion.
6 years ago
Steven Kirk
aa81db75a0
Added WPF-style validation for AvaloniaProperty.
6 years ago
Steven Kirk
d5dc470416
Fixed issue with LocalValue and bindings.
6 years ago
ahopper
8879d4c92d
added benchmark
6 years ago
Dariusz Komosinski
ef8cbf07f7
Rename benchmark file.
6 years ago
Dariusz Komosinski
8e60e83d4c
Reduce memory usage of binding operations.
6 years ago
Steven Kirk
8ed800ad71
I did the merge wrong.
Delete some files that should have been deleted in merge.
6 years ago
Steven Kirk
24f11bba18
Simplify test controls in styling unit tests.
Making a change to interfaces was becoming a pain because of this.
6 years ago
José Pedro
1ba4c68a35
Implemented TargetNullValue for bindings.
6 years ago
Dariusz Komosinski
b1ec049054
Simplify lowest common ancestor code.
6 years ago
Dariusz Komosinski
6be21fb36c
Add more unit tests.
6 years ago
Steven Kirk
b8717bf6dc
Tidy up API.
6 years ago
Steven Kirk
0cfa15913d
Remove ignored validate parameter.
6 years ago
Steven Kirk
6be3acb46c
Make ValueStore typed.
Major refactor of the Avalonia core to make the styled property store typed.
6 years ago