Max Katz
bbbc1280ff
Rename RegionBrush to SystemRegionColor and use it in default templates
3 years ago
Max Katz
1aba81a27f
Fix non dynamic accent brushes
3 years ago
Max Katz
c9b1ed8f51
Implement ColorPaletteResources as a public API
3 years ago
Max Katz
a09c182e89
Implement SystemAccentColors backed by the actual system values
3 years ago
Max Katz
a507e92b31
Fix theme-dependend markup extensions not knowing current theme context
3 years ago
affederaffe
f77b67db97
Move comment
3 years ago
affederaffe
1117332e4d
Add AccentColor support for KDE
3 years ago
Max Katz
1bce8de686
Fix merge conflict
3 years ago
Emmanuel Hansen
2f5586fad0
make refresh visualizer PullDirection internal
3 years ago
Dan Walmsley
4fbcfac676
fix build.
3 years ago
Steven Kirk
cf52ab43cd
Added WindowBase.TryGetPlatformHandle.
#11062 made `WindowBase.PlatformImpl` internal so we need to expose a different want to get the window handle.
3 years ago
Steven Kirk
981dfd29d7
Added WindowBase.Resized event.
Which exposes the resize reason and new client size. Required renaming `PlatformResizeReason` to `WindowResizeReason`. Made `TopLevel.HandleResized` method internal.
3 years ago
Benedikt Stebner
dd1df9a539
Do not execute OnClick when access key is pressed in combination with AltGr
3 years ago
Steven Kirk
5262eec4cf
Passing null gives us the point relative to the root.
And update the documentation for `GetPosition` to explain what `null` does (as in `GetCurrentPoint`).
3 years ago
Max Katz
56d87931db
Inject array for IList
3 years ago
Max Katz
ec19a0876e
Cleanup Points collection usage, make it use IList
3 years ago
Steven Kirk
e5acebabcb
Make thumb drag delta relative to root.
#10892 changed the thumb drag delta to be relative to the parent, but the problem was that is that if the thumb controls the position of the parent then the delta will be incorrect.
This was causing a bug in `TreeDataGrid` headers which were jumping around: the `Thumb` is a child of the header and causes the header to move.
3 years ago
Nikita Tsukanov
c63571dcda
Reuse SpanHelpers in Avalonia.Build.Tasks
3 years ago
Max Katz
c2b2803483
Nullable attributes
3 years ago
Max Katz
477abdd2f0
Remove AvaloniaListAttribute
3 years ago
Max Katz
862d07fcaf
Support special case for points collection
3 years ago
Max Katz
38c1cc95c6
Init AvaloniaListAttribute
3 years ago
Nikita Tsukanov
c5ae8bb762
Fixes
3 years ago
Nikita Tsukanov
30064443b1
Added [PrivateApi]
3 years ago
Tim
6d880d483b
fix Watermark not shown when having a custom watermark set
3 years ago
Steven Kirk
3882bc0217
Remove ControlTemplateResult.
Use `TempateResult<Control>` instead as described in #6666 .
Fixes #10525 .
3 years ago
Steven Kirk
00315ef37d
Enqueue for arrange after measure.
Fixes the problem described in `Child_Can_Invalidate_Parent_Measure_During_Arrange`. To do this, add controls to the arrange queue after they've been measured, not on measure invalidation.
Fixes #11015
3 years ago
Steven Kirk
5926c994c5
Added ThumbAutomationPeer.
To make slider thumb visible to automation.
3 years ago
Steven Kirk
d37de0b634
Allow setting item container properties in styles.
Allow overriding the default behavior of item containers in styles or in `ItemContainerTheme`. To do this, use `SetCurrentValue` to set the properties, only if the properties are not already set (i.e. from a style). This also requires us to clear the current value when the container is cleared (styles won't be affected as `AvaloniaObject.ClearValue` only clears local or `SetCurrentValue` values).
3 years ago
Benedikt Stebner
a6bc0f9f73
[TextLayout] Do not call Draw with current TextLine.Start offset
3 years ago
Benedikt Stebner
25ff3e2004
Only initialize imm32 if a text input client is present
3 years ago
Tom Edwards
63f3a9a58e
Use SetCurrentValue to manipulate sibling RadioButtons
3 years ago
Nikita Tsukanov
e2429184e4
DropShadow default color = black
3 years ago
Nikita Tsukanov
79e2e5b11a
DropShadowEffect Direction is in degrees, not radians
3 years ago
Dan Walmsley
071691a764
fix typo
3 years ago
Nikita Tsukanov
cf28998a46
Bitmap effects support
3 years ago
Max Katz
72603182ae
Backport WCT fix for editing DataGrid
3 years ago
Steven Kirk
1135895b73
Make Classes properties readonly.
Makes the `StyledElement.Classes` and `Flyout.FlyoutPresenterClasses` properties readonly. Adds a transformer to the XAML compiler to convert attribute syntax classes setters to collection syntax so that they will be added to the existing `Classes` object.
Prevents an unneeded allocation of a `Classes` object when setting `Classes` from XAML.
3 years ago
Max Katz
1a46ccbbeb
Add "readClipboardText" workaround for Mozilla
3 years ago
Benedikt Stebner
69c31bb394
Use untransfored bounds for GlyphRunNode.HitTestTransformed
3 years ago
Steven Kirk
1a3b8fbcac
Don't allow binding to `ItemsControl.Items`.
Depends on https://github.com/kekekeks/XamlX/pull/85 : this PR disallows invoking "collection behavior" for property setters when using attribute syntax.
Required adding a `Flyout.FlyoutPresenterClasses` setter. This property was previously buggy without the setter (see https://github.com/AvaloniaUI/Avalonia/issues/10946#issuecomment-1506563268 ). Added tests for setting classes that I put in place when investigating this.
Fixes #10946
3 years ago
jankrib
8f7deb17ad
Implement HitTestTransformed
3 years ago
Emmanuel Hansen
bb2b2fce5f
correction in calculating bottom inset on android
3 years ago
Max Katz
77feabd2f5
Update WindowingPlatform.cs
3 years ago
Yoh Deadfall
826363365c
Removed unreferenced resources from TextBox
3 years ago
Nikita Tsukanov
ff318b67d9
Rename InvokeTaskAsync to InvokeAsync to remove breaking behavior change
3 years ago
Emmanuel Hansen
c4eebcbcb2
activate window when restored
3 years ago
Emmanuel Hansen
f914086f30
add UpdateWMHints method
3 years ago
Emmanuel Hansen
bd023ae06f
x11 - prevent window from receiving input when disabled
3 years ago
Benedikt Stebner
fcb9fa59f0
Make sure we don't pass a null string to MicroCom
3 years ago