Max Katz
55640f0c2b
(hack?) Fix stackoverflow
3 years ago
Max Katz
935c0b549d
Move WithInterFont to the global Avalonia namespace
To keep it in line with other AppBuilder extensions, keeping Program.cs file simpler
3 years ago
Collin Alpert
659a256aa6
Fix nullability
3 years ago
robloo
b7fa91a0ad
Remove `PrivateAssets="All"` from Tmds.DBus.Protocol package ref
3 years ago
robloo
541787274d
Mark Tmds.DBus.* as PrivateAssets in Avalonia.FreeDesktop.csproj
3 years ago
Steven Kirk
6dd9106fe5
Don't layout invisible controls.
And fix unit tests that were relying on this behavior.
3 years ago
Steven Kirk
683afe6e9f
Use correct newValue on inherited property change.
- `oldValue` was misnamed - it's the new value
- We calculated the new value and then didn't pass it to children for their property changed events: they were using the default value which may be wrong if the value is set further up the tree
3 years ago
Nikita Tsukanov
312f1250e2
Don't use AvaloniaObject in IPlatformRenderInterface
3 years ago
Benedikt Stebner
f432d6f0a9
Fix GetTextBounds for combinations of EndOfParargrap and embedded RTL text
3 years ago
Steven Kirk
b7a249107b
Make data templates work again with MenuItem.
- `MenuItem` is a `HeaderedSelectingItemsControl` not a `HeaderedItemsControl` so need to separate logic for that case when preparing items
- Added `HeaderTemplate` to `HeaderedSelectingItemsControl `
- Tweaked logic for selecting header templates: parent's `ItemTemplate` should be used if set (cross-checked with WPF)
- Update menu templates to bind to menu item's `HeaderTemplate`
Fixes #10626
Fixes #10718
3 years ago
Benedikt Stebner
b2a4e85e23
Only bypass WM_CHAR if previous composition is not empty
3 years ago
Nikita Tsukanov
8b881f01b9
Writable composition properties
3 years ago
Steven Kirk
13a586077f
Bind readonly properties one-way.
Fixes #10680 .
3 years ago
Lubomir Tetak
f829cdcdcd
cleanup
3 years ago
Lubomir Tetak
6535e299b0
DataGrid column resize near edge fix
3 years ago
Steven Kirk
060e290fc1
Revert "Support multiple `InheritDataTypeFromItems`."
This reverts commit 57c997bed7 .
3 years ago
Steven Kirk
996578f2bf
Remove all remaining uses of Items setter.
3 years ago
Steven Kirk
18daa4cf37
Make ItemsControl.Items read-only.
3 years ago
affederaffe
7b6cabe608
Fix TrayIcons on Gnome
3 years ago
Tom Edwards
055f894012
Added conversion option to PropertyObservable
3 years ago
Emmanuel Hansen
3ac7760b3a
don't create an input connection if client is null
3 years ago
Emmanuel Hansen
04c8b652c8
move clipboard to TopLevel
3 years ago
Steven Kirk
e7aaf8a7f7
Ensure that the default value can be coerced.
When the coercion function on a property results in the default value being coerced, ensure that state is recorded in the value store.
3 years ago
Benedikt Stebner
1964afb854
Fix possible NRE
3 years ago
Benedikt Stebner
45bf804cd4
Fix SelectableTextBlock selection
3 years ago
Benedikt Stebner
c6afd9bf4f
Fix NRE for AvaloniaNativeTextInputMethod
3 years ago
robloo
a401819251
Remove alpha in Hex color strings when IsAlphaEnabled or IsAlphaVisible is false
3 years ago
Tim
ba4830c372
Better fix for the NRE
3 years ago
Tim
4e8bf776dd
Attempt to fix possible NRE
3 years ago
robloo
bcf1431bf9
Move AlphaComponentPosition into a better directory
3 years ago
robloo
0e92b5b742
Always use AlphaComponentPosition.Leading in DevTools color property editors
3 years ago
robloo
d955a777e5
Switch HexInputAlphaPositionProperty default to Leading to match XAML
The control themes are now responsible to set the property to match slider position and CSS standards. Doing this has better compatibility with XAML by default.
3 years ago
robloo
df7cf037e0
Use SetCurrentValue() in ToggleSplitButton to fix warning
3 years ago
robloo
12fa653ca2
Use Transparent background in ColorPreviewer so DropShadow appears
This addresses #10539 . Drop shadow for now requires the Background to be set in order to work correctly.
3 years ago
Emmanuel Hansen
7c460a9bcb
add system bar color attached property
3 years ago
Nikita Tsukanov
6ad2f2a2f4
non-private set
3 years ago
Max Katz
e29e43793f
Fix menu placement
3 years ago
Nikita Tsukanov
9119ac8513
fix
3 years ago
Nikita Tsukanov
b75bc80ba3
fix
3 years ago
Nikita Tsukanov
3d78754f2e
Call Array.Clear immediately when returning it to the pool
3 years ago
Nikita Tsukanov
7d63f5f546
InvokeShutdown
3 years ago
Nikita Tsukanov
91e4bd00b6
Fixed more tests
3 years ago
Nikita Tsukanov
9d4f11a111
Fixed tests
3 years ago
Nikita Tsukanov
5f52122bba
Implemented ExitAllFrames, DisableProcessing and Shutdown, dispatcher callbacks now have proper sync context
3 years ago
Nikita Tsukanov
d71a54ed58
Added Dispatcher.InvokeTaskAsync helpers
3 years ago
Nikita Tsukanov
b3fe7827a2
Fixed Dispatcher.Invoke when called from the UI thread
3 years ago
Steven Kirk
58676fb417
Fix comparison.
The first element is index 0.
3 years ago
Benedikt Stebner
a00946492d
Fix failing test
3 years ago
Steven Kirk
c2b83d9909
Defer TreeViewItem creation to TreeView.
Fixes nodes not being selected correctly when parent node is expanded.
3 years ago
Steven Kirk
27b2b27330
Make ExpandSubTree work again.
3 years ago