Bill Henning
0d1d72e26a
Update popups and flyouts to properly support OverlayDismissEventPassThrough ( #15517 )
* Updated Popup to raise the pass-through overlay dismiss event prior to possibly closing the popup when a pointer is pressed. Added the PopupFlyoutBase.OverlayDismissEventPassThrough property and updated logic in Button.
* Updated SplitButton logic to handle OverlayDismissEventPassThrough scenarios.
* Updated CalendarDatePicker logic to handle OverlayDismissEventPassThrough scenarios.
* Updated ComboBox logic to handle OverlayDismissEventPassThrough scenarios.
* Removed unncessary ComboBox.PopupClosed logic that focused the control. This was problematic when the popup was open with OverlayDismissEventPassThrough and clicking onto another control. Focus would not move to the clicked control.
* Fixed the Clicking_On_Control_PseudoClass unit test to properly recognize pseudo-class behavior change.
* Added a couple unit tests to FlyoutTests.
2 years ago
Dong Bin
edb66a7720
ComboBox: support different DataTemplate for selected item. ( #15420 )
* feat: ComboBox: support different DataTemplate for selected item.
* feat: use coerce instead of multi binding.
* test: add multiple unit tests.
2 years ago
Max Katz
60c11167f8
Add default template to the ContentControl, remove theme specific templates ( #11365 )
* Move ContentPresenter template to the property default value
* Fix some unit tests
* Fix more tests
* Fix more tests
* Update api rules
2 years ago
Steven Kirk
f8eceb4af9
Update usages of ItemsControl Items/ItemsSource.
- Use `ItemsSource` when appropriate
- When `Items` is appropriate, don't use the setter
3 years ago
Steven Kirk
ba7e8a20b5
Added ItemsControl.ItemsSource.
`ItemsControl` now works more like WPF, in that there are separate `Items` and `ItemsSource` properties. For backwards compatibility `Items` can still be set, though the setter is deprecated. `Items` needed to be changed from `IEnumerable` to `IList` though.
3 years ago
Emmanuel Hansen
f61c7f6cd9
Revert "fix tests"
This reverts commit 584e18f78d29480890711b1149d946f61e0d8447.
3 years ago
Emmanuel Hansen
c804fa00cf
fix tests
3 years ago
Steven Kirk
5d1f9f4a0f
Removed VirtualizationMode.
If you want a different virtualization mode, use a different panel.
3 years ago
Steven Kirk
692c0c155d
Begin refactoring ItemsPresenter.
A lot still broken, in particular virtualization is completely removed.`ItemsPresenter` now no longer has an `Items` or `ItemTemplate` property; it detects when it's hosted in an `ItemsControl`. `IItemsPresenter` interface removed.
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Giuseppe Lippolis
de4b55f8ee
feat(tests): Address rule CA1822
3 years ago
rabbitism
79cc37e372
feat: add :dropdownopen and :pressed pseudoclass for combobox.
simplify fluent theme combobox default template.
update unit test.
4 years ago
daniel mayost
5bf28b671d
some fixes
4 years ago
daniel mayost
c77c500bcd
fixes tests
4 years ago
daniel mayost
402790ba86
improve UpdateFlowDirection
4 years ago
daniel mayost
05db047d29
typo
4 years ago
daniel mayost
03e01a6e55
initial working
4 years ago
Tako
fd5e2169c1
reimplementation and some tests
4 years ago
Giuseppe Lippolis
83c141172f
feat(tests): Add test to check closing window on Alt+F4 KeyDown when ComboBox is focused
5 years ago
aljosas
2a185da639
removing Dispatcher.UIThread.RunJobs() from tests
5 years ago
aljosas
2dd6b574d4
fixing failing test
5 years ago
aljosas
ede1e2db94
fixing PR for data validation for Combobox control and all SelectingItemsControl
5 years ago
aljosas
899ba64913
fixing data validation for Combobox control and all SelectingItems control #5652
5 years ago
luthfiampas
a4477e7de6
set default value of IsTextSearchEnabled to true
5 years ago
luthfiampas
e6952dc352
rename AutoSelect to TextSearch
5 years ago
luthfiampas
e4cf7a6bf7
add auto-select functionality to ComboBox control
5 years ago
Steven Kirk
c6540c1bf2
Fix failing test.
5 years ago
Giuseppe Lippolis
9425ca8420
fixed test
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Dariusz Komosinski
01d26ed2ee
Failing unit tests for ComboBox losing focus on detach and Popup.Close raising Closed events for already closed popup.
6 years ago
Nikita Tsukanov
1ab923c02e
Removed WithNameScope
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Nikita Tsukanov
f556db57b4
Refactor pointer events to support touch events
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
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 years ago
Steven Kirk
268587c432
Fix DropDown popup opening.
When the `DropDown` control is clicked, toggle the opening of the popup.
Fixes #1169 .
9 years ago
Steven Kirk
a0e880581e
Use ContentControl in DropDown template.
Instead of `ContentPresenter`. This fixes a memory leak whereby
`DropDown` wasn't correctly parenting the `Rectangle` created for
`SelectionBoxItem` when the selected item is a control. Fixes #706 .
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
9a0df79ec5
Use UnitTestApplication in some more places.
Also removed service registration from some tests that now don't require
it.
10 years ago
Steven Kirk
a7647298e6
Removed test
It wasn't right.
10 years ago
Steven Kirk
adee104ad9
DropDown shouldn't be an IContentControl.
10 years ago
Steven Kirk
01417ba883
Renamed ControlTemplate -> FuncControlTemplate
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
d11d779414
Trying to fix capitalization of tests and docs AGAIN.
11 years ago
Steven Kirk
1a2fba4798
Revert "Fixed casing of Docs and Tests directories."
This reverts commit 845b28a2c2 .
11 years ago
Steven Kirk
845b28a2c2
Fixed casing of Docs and Tests directories.
11 years ago