Steven Kirk
d22282c151
Added failing tests for #2470 .
7 years ago
Steven Kirk
f8cf268f0e
Added unit test for toplevel menu close.
Added unit test for previous commit, and also tweaked code a little bit to use `IsTopLevel` instead of trying to cast the parent menu item.
7 years ago
Benedikt Schroeder
4413de463e
Remove unsupported line caps
7 years ago
Steven Kirk
1e74e8fc60
Add failing tests for #2388 .
7 years ago
Dariusz Komosinski
1b869ff27b
Get rid of not needed interfaces.
7 years ago
Steven Kirk
1cd900c856
Prevent leak when using TemplateBinding from a Setter.
When a `TemplateBinding` is used as a `Setter.Value`, then we need to make sure we don't use the `TemplateBinding` itself as the binding because this can cause a memory leak.
Replace `IRequiresTemplateInSetter` with `ISetterValue` which can be used to require a template in the setter for `Control` and can also be used to notify `TemplateBinding` that it's in a setter and so should always clone itself.
Fixes #2420
7 years ago
Dariusz Komosinski
12fc28e2d0
Add mocks for geometry impls.
7 years ago
artyom
0961cc122a
Add xmlns, move files to Avalonia.ReactiveUI namespace
7 years ago
Steven Kirk
3992e0e855
Added failing test for #2420 .
7 years ago
Steven Kirk
86f7918d4d
Added failing tests for #2350 .
7 years ago
Steven Kirk
a48efd6b55
Don't leak subs to CanExecuteChanged in MenuItem.
7 years ago
Steven Kirk
7363f7140b
Don't leak subs to CanExecuteChanged in Button.
7 years ago
Steven Kirk
a7b8e37e3b
Renamed DropDownTests -> ComboBoxTests.
7 years ago
Steven Kirk
53b71076d6
DropDown -> ComboBox.
Renamed `DropDown` to `ComboBox` to fit in with WPF/UWP.
7 years ago
OronDF343
d065568be9
Added MultiBinding.StringFormat + Relevant unit tests
7 years ago
Steven Kirk
a39c804e72
Added failing test for #2381 .
7 years ago
Dariusz Komosiński
8534769435
Platform geometry implementations for D2D and Skia.
7 years ago
MonkAlex
235cc660fd
#1052 Rename TreeContainerIndex.Items to Containers
7 years ago
artyom
5e7a5b460c
Synchronize DataContext with ReactiveUI.IViewFor.ViewModel property
7 years ago
Dariusz Komosinski
6727bbe3df
Fix Skia rendering hairline width strokes when Pen thickness is 0.
7 years ago
Dariusz Komosinski
2c04c95a12
Expose SelectedItems property. Add more tests for edge cases failing for ListBox.
7 years ago
Steven Kirk
89d969b367
Added selector comma operator.
The comma selector can be used to separate a number different selectors, all of which will be applied to the control with an OR.
Fixes #1742
7 years ago
Dariusz Komosinski
85d309830a
TreeView multiple selection support.
7 years ago
Steven Kirk
e7e57d0e91
Fix text rendering where TextAlignment != Left.
The renderer was using the wrong bounds for text where `TextAlignment != Left` as seen in #1625 . To fix this, change `FormattedTextImpl.Size` to `Bounds`, which returns a rect that takes into account the text alignment and similarly change `FormattedText.Measure` to return a `Rect` instead of a `Size.
Fixes #1625 .
7 years ago
Steven Kirk
82b3bbcc6b
Added failing test for #1558 .
7 years ago
Steven Kirk
d37615bea8
Added failing test for #1898 .
Plus a couple of other empty binding path tests.
7 years ago
Steven Kirk
028d42c7b2
Add additional failing test for #2053 .
7 years ago
Steven Kirk
1d8bf77ab1
Added failing test for #2335 .
7 years ago
Steven Kirk
4a5e11f6aa
Fix keyboard interaction for ContextMenu.
7 years ago
Steven Kirk
f85995ed7e
Move design-time handling of events...
...to `Avalonia.Markup.Xaml`. Also added tests: tests required a new instance of `AvaloniaXamlSchemaContext` for each `AvaloniaXamlLoader` as otherwise one test can affect other tests.
7 years ago
Nikita Tsukanov
4af9b22c59
Introduced WeakEventHandlerManager
7 years ago
Steven Kirk
b32a10ceda
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Steven Kirk
9b4bd8d621
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Steven Kirk
260789c425
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Steven Kirk
61be769d61
Update tests/Avalonia.Layout.UnitTests/LayoutManagerTests.cs
Co-Authored-By: donandren <donandren@gmail.com>
7 years ago
Steven Kirk
372f0f266e
Add another failing test relating to #1099 .
7 years ago
Andrey Kunchev
a4132890bf
add unit tests for layout queue
7 years ago
Steven Kirk
d991173296
Added tests for #2316 .
7 years ago
Andrey Kunchev
48ad6babda
improve test
7 years ago
Andrey Kunchev
d53dbe9416
add some more layout manager tests for potential issues with infinity loop and proper work
7 years ago
Steven Kirk
268e5ee549
Fix failing test.
7 years ago
Steven Kirk
131a4d90ef
Remove Avalonia.ISupportInitialize.
This is a relic from when we were targeting a PCL profile that didn't have `System.ComponentModel.ISupportInitialize`. Now that we have that, use it instead.
7 years ago
mstr2
039991da68
Fixed a bug where AddOwner would add a property to AvaloniaPropertyRegistry's property list more than once
7 years ago
Andrey Kunchev
870a2f365f
layoutmanager/listbox/vistualization/scroll issue unit test
7 years ago
artyom
6e4b9a23c2
Add unit tests for RoutedViewHost
7 years ago
mstr2
9d3fd84a7a
Fixes a bug where properties would be added multiple times to the global AvaloniaPropertyRegistry._properties list.
7 years ago
Nikita Tsukanov
c742fa42d2
[REMOTE] Skip unknown BSON properties
7 years ago
Steven Kirk
233adc9ca5
Added `:not()` style selector.
7 years ago
Steven Kirk
653fa458c1
Call InitializeComponent in RxUI activation tests.
To make sure activation works after loading XAML.
7 years ago
Steven Kirk
068acb6376
Added TopLevel.Opened unit tests.
7 years ago