Steven Kirk
91fc1335a0
Sigh, winappdriver.
4 years ago
Steven Kirk
7156339304
Test CenterOwner window position.
4 years ago
Steven Kirk
4f84950c41
Added tests for #8335 .
4 years ago
Steven Kirk
19c55102e5
Use manual window startup location in macOS tests.
Seems to cause less flaky tests; `mainWindow.Click()` clicks the main window in the middle, where the secondary window is shown, so don't go out of our way to put the secondary window in front of where we're clicking.
4 years ago
Steven Kirk
cd04964c85
Added a retry to macOS window tests.
MacOS sometimes seems to need a bit of time to get itself back in order after switching out of fullscreen.
4 years ago
Steven Kirk
2822f5bfcb
Fix window minimization attempt 2.
The previous solution didn't work for owned windows. Hopefully this fixes the problem at its root: that `BringToFront` activates a window even if it's miniaturized.
4 years ago
Steven Kirk
4b08e659f6
Revert "Fix window minimization."
This reverts commit 20ddbad2ad .
It didn't work with owned windows, there's something else going on here.
4 years ago
Steven Kirk
267710787e
Tweak tests.
- Add a retry to `GetWindowInfo`
- Owned windows can't go fullscreen on macOS.
4 years ago
Steven Kirk
519e850bf8
Correctly update position.
`Window.Position` isn't an Avalonia property so doesn't auto-update, we need to listen for `PositionChanged`.
4 years ago
Steven Kirk
dfa0c44269
Set actualWindowState earlier.
Previously, `_actualWindowState` was being set after the window state had finished changing, but `ExitFullScreenMode` calls `UpdateStyle` which expects `_actualWindowState` to be up-to-date, meaning that previously we ended up with an invalid size when exiting full screen mode programatically.
4 years ago
Steven Kirk
328aef882b
Added failing tests for WindowState on mac.
4 years ago
Steven Kirk
20ddbad2ad
Fix window minimization.
A non-client click was being received after the click to minimize the window, which caused a call to `_parent->BringToFront();`, meaning the window got immediately restored. Ignore clicks when the window is minimized.
Fixes #8335
4 years ago
Steven Kirk
355ba94fa7
Don't return FrameSize until window is shown.
Since #8629 , the content size isn't set until the window is shown, so we can't know the frame size.
4 years ago
Steven Kirk
be9c9cfaad
Remove debug code.
4 years ago
Steven Kirk
4a12fbcc75
Merge branch 'master' into feature/window-integration-tests
4 years ago
Max Katz
461bdde70d
Merge pull request #8368 from Gillibald/feature/ZeroReflectionUnicodeData
Zero reflection unicode data
4 years ago
Steven Kirk
4f4f291b2d
Move mac-specific tests to a separate file.
And tidy stuff up a bit.
4 years ago
Benedikt Stebner
5d71d88ad9
Merge branch 'master' into feature/ZeroReflectionUnicodeData
4 years ago
Max Katz
138791e3e6
Merge pull request #8373 from AvaloniaUI/fixes/8372-clear-local-value
Correctly clear PriorityValue local value
4 years ago
Steven Kirk
857bfb5bd2
Prevent re-entrancy in PropertySetterInstance.Dispose.
The call to `_subscription.Dispose()` causes `BindingEntry.Dispose()` to call `_subscription.Dispose()`, but in this case the `BindingEntry._subscription` instance is the `PropertySetterInstance`!
Except now `PropertySetterInstance._subscription` is null, and so `PropertySetterInstance.Dispose` called `ClearValue`, which is obviously wrong.
4 years ago
Steven Kirk
c9e10f0d2f
Added additional failing test.
Exposed by the previous fix for #8372 : re-entrancy in `PropertySetterInstance.Dispose()` is causing detaching a style to call `ClearValue` on the property. Previously this wasn't a problem as `ClearValue` didn't work, but now it is.
(Also added one passing test which tests the same scenario in `PropertySetterBindingInstance` for future coverage)
4 years ago
Steven Kirk
f33d4e881f
Correctly clear local value in PriorityValue.
4 years ago
Steven Kirk
64518efc51
Add failing test for #8372 .
4 years ago
Steven Kirk
8b9e675bd4
Refactor PlatformFact.
To make it inclusive rather than exclusive.
4 years ago
Steven Kirk
8c3424baa4
Refactor OSX window tests a bit.
Try not to rely on `_session.ResetApp();` because restoring the application state in the tests tends to show up more errors (which this change has done: https://github.com/AvaloniaUI/Avalonia/issues/8335#issuecomment-1162804733 )
4 years ago
Max Katz
6a5e005539
Add trim_trailing_whitespace to editorconfig
4 years ago
Max Katz
6b6de640c9
Merge pull request #8318 from ahmedmohammedfawzy/patch-1
TextBox Ignore Changes While Editing
4 years ago
ahmedmohammedfawzy
355066769a
Merge branch 'master' into patch-1
4 years ago
Benedikt Stebner
f9ea275e9d
Merge branch 'master' into feature/ZeroReflectionUnicodeData
4 years ago
Steven Kirk
43700d3525
Merge pull request #8224 from danielmayost/fixesFlowDirectionComboBox
Add unit test for FlowDirection and rework implementation in ComboBox
4 years ago
Steven Kirk
860fcc524d
Refactor how we show windows.
Trying to make it a little less hacky. Only tested on Win32 so far.
4 years ago
Benedikt Stebner
7f347308f1
Update generator
4 years ago
Benedikt Stebner
db9e408c6a
Use ReadOnlySpan<byte>
4 years ago
Benedikt Stebner
608238211b
Disable trie generation
4 years ago
Benedikt Stebner
f6c5dbe5ea
First naive attempt to get zero reflection unicode data
4 years ago
Benedikt Stebner
705a59ab9b
Merge branch 'master' into fixesFlowDirectionComboBox
4 years ago
Benedikt Stebner
68f083e74f
Merge remote-tracking branch 'upstream/master'
4 years ago
ahmedmohammedfawzy
50d388a7e1
Merge branch 'master' into patch-1
4 years ago
Max Katz
99b4530e45
Merge pull request #5169 from yatli/fix_macos_ctrl
fix #4996
4 years ago
Max Katz
db59b2ecfb
Merge branch 'master' into fix_macos_ctrl
4 years ago
Max Katz
4e64428330
Merge branch 'master' into fix_macos_ctrl
# Conflicts:
# native/Avalonia.Native/src/OSX/window.mm
4 years ago
Max Katz
59d30b6d62
Merge pull request #8328 from Maruhl/master
Avalonia.Base - Styles improvements
4 years ago
Max Katz
60541e1f8e
Merge branch 'master' into master
4 years ago
Max Katz
d7e31a3138
Merge pull request #8326 from Gillibald/feature/formattedTextBuildGeometry
Implement FormattedText.BuildGeometry
4 years ago
Max Katz
fc0ef7f376
Merge branch 'master' into feature/formattedTextBuildGeometry
4 years ago
Benedikt Stebner
a76f1473c0
Merge remote-tracking branch 'upstream/master'
4 years ago
Max Katz
8d52bd98af
Add profiling to the control catalog android
4 years ago
ahmedmohammedfawzy
93af5a3a17
Merge branch 'master' into patch-1
4 years ago
Max Katz
1975acc0bb
Merge pull request #8220 from AvaloniaUI/xdatatype-to-datatype
Implicitly map x:DataType to a DataType on a DataTemplate.
4 years ago
Mario Uhlmann
bbe7d0abb2
foreach .. "items.OfType<" replaced with traditional for-loop
4 years ago