Simon Haines
fcbe456cb9
Filter pointer pressed events from disabled sub-menu items
Pointer clicks on disabled and non-interactive items in sub-menus
are bubbled up to the sub-menu's parent, causing the sub-menu popup
to be closed when it is expected to remain open. This scenario is
identified and filtered out by searching for a popup in the logical
tree between the source and the handler. Fixes #6412 .
4 years ago
Max Katz
0709bbfe0f
Fix tests
4 years ago
Steven Kirk
10d1b6cd34
Added test.
4 years ago
Steven Kirk
4e65b0296b
Added failing tests for #6729 .
5 years ago
Dan Walmsley
786375aff9
handle platforms that return null for the trayiconimpl.
5 years ago
Dan Walmsley
00b82a215d
fix unit tests.
5 years ago
Tako
c6f9c6a820
Implement MaskedTextBox ( #6453 )
5 years ago
Takoooooo
60b3e028b5
fix
5 years ago
Giuseppe Lippolis
8b6f264379
ref(test): removed warning CS0105 The using directive for 'System' appeared previously in this namespace
5 years ago
Steven Kirk
5ae9a2d60c
Validate source collection, and add tests.
5 years ago
Max Katz
0f83ccb4b0
ContentPresenter should create child without content, if template was set ( #6226 )
* Fix #6224
* Fix data templates Match
* Do not use preview features
* Do not create Child if Content is null and DataTemplate was set
* Update src/Avalonia.Base/Utilities/TypeUtilities.cs
* Update src/Avalonia.Controls/Presenters/ContentPresenter.cs
* Update src/Avalonia.Controls/Presenters/ContentPresenter.cs
5 years ago
Dan Walmsley
0ddc444d2c
Rename eventargs class.
5 years ago
Dan Walmsley
2a4830bf5b
fix tests.
5 years ago
Dan Walmsley
c9458e5be8
use a ShutdownRequestedEventArgs class to future proof the event args.
5 years ago
Steven Kirk
ba369a9059
Fix auto-scaling on win32.
- Adds a "resize reason" to platform `Resized` events
- Which is used by the auto-sizing code to determine whether to reset `SizeToContent`
- Also other improvements to the reset logic for `SizeToContent`:
- Don't reset it if the size hasn't changed
- Don't reset it if `CanResize == false`
- Only reset the dimensions whose size has changed
- Obsolete the `BeginAutoSizing`/`AutoSizing` feature in `WindowBase`
5 years ago
Steven Kirk
298dd4e299
Added ShutdownRequested to IClassicDesktopStyleApplicationLifetime.
5 years ago
Dan Walmsley
b250fce59c
rename test to describe the actual issue.
5 years ago
Dan Walmsley
a295cac930
test more keys.
5 years ago
Dan Walmsley
73aaefcc32
add a failing unit test to demonstrate the issue.
5 years ago
Dan Walmsley
ac45578575
initial attempt at unit test
5 years ago
Steven Kirk
a42334d128
Hide child windows when hiding parent/owner.
5 years ago
Steven Kirk
15cdee1bee
Ensure parent/owner windows are visible when showing child.
5 years ago
Steven Kirk
69852a56f5
Don't allow self as parent/owner window.
5 years ago
Steven Kirk
ea3f85e126
Don't allow using a closed window as a parent/owner.
5 years ago
Steven Kirk
cd51d638e9
Pass dialog flag to window impl Show.
Not doing anything with it yet.
5 years ago
Giuseppe Lippolis
83c141172f
feat(tests): Add test to check closing window on Alt+F4 KeyDown when ComboBox is focused
5 years ago
Giuseppe Lippolis
b4e11b227d
fixes: code documentation
5 years ago
Max Katz
9e2d104739
Add more tests
5 years ago
Max Katz
18812a217f
Fix ContextMenu tests
5 years ago
Max Katz
800788be20
Use ContextRequested event to show ContextFlyout + some refactoring of FlyoutBase
5 years ago
Max Katz
72c975ac0b
Use ContextRequested event to show ContextMenu
5 years ago
Dariusz Komosinski
b3e2b05d1f
Implement StretchDirection for Viewbox. Cleanup Viewbox.
5 years ago
Murdo R Ergeaux
b1db4ce6d2
Update ItemsControl PseudoClasses on ItemCount property changed
5 years ago
Murdo R Ergeaux
dbab1666a2
Use ItemCount to determine PseudoClass in ItemsControl
5 years ago
Benedikt Stebner
753c991aa8
Add failing test condition
5 years ago
Steven Kirk
f9a6f5b1ec
Create failing test for SelectedItems binding.
5 years ago
Max Katz
57b7a3a8b2
Update tests per new default
5 years ago
Steven Kirk
2c3f70bd07
Add more tests for resetting InternalSelectionModel.
Always check that `WriteableSelectedItems` is correct - sometimes it's not it seems.
5 years ago
ReeJK
6e26cd58fa
Button state update when CommandParameter changed
5 years ago
aljosas
2a185da639
removing Dispatcher.UIThread.RunJobs() from tests
5 years ago
aljosas
2dd6b574d4
fixing failing test
5 years ago
aljosas
1c61a5c1c5
fixed failed test
5 years ago
amwx
5662c22a72
Add Tests
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
aguahombre
5d130b5d79
Add data validation error support to NumericUpDown control #3591
5 years ago
aguahombre
f22730aca8
AutoCompleteBox validation not working for SelectedItem #5586
5 years ago
luthfiampas
1fa6bd25eb
better TextBox.MaxLength tests
5 years ago
Dan Walmsley
69a149f0ca
use inline data.
5 years ago
Dan Walmsley
f829137f73
add unit tests for window close when os button is clicked
5 years ago