Nikita Tsukanov
96bd813fe4
[X11] When not mapped change _NET_WM_STATE property directly
See https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm46175134492192
6 years ago
Dariusz Komosinski
4dd5e08d9e
Get rid of class handler in favor of OnPropertyChanged.
6 years ago
Jumar Macato
6b84fc2ad5
Don't constrain header's ContentPresenter on TreeViewItem
6 years ago
Benedikt Schroeder
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
6 years ago
Benedikt Schroeder
f7aa466803
Include last line when constraint is surpassed
7 years ago
Steven Kirk
bd571c3459
Remove manual capacity management.
7 years ago
Deadpikle
6c29598071
Fix clicking TextBox border moving to end
Twofold fix:
1) Cursor doesn't show IBeam when not in DockPanel
2) If you do click the border, it just focuses the text box -- it does not move the selection
7 years ago
Dariusz Komosinski
b3a8b39670
Remove extra allocations from Scrollbar constructor.
7 years ago
Deadpikle
a8663cd1f3
Fix middle click being able to change selection
7 years ago
Dariusz Komosinski
0e03dab3fe
Remove dead code.
7 years ago
Dariusz Komosinski
dc93d14a1b
Return IReadOnlyList from most of the AvaloniaPropertyRegistry calls so users are not forced into allocating enumerators.
7 years ago
Dariusz Komosinski
3ea20ab7d0
Avoid allocating extra delegates when initializing and deinitializing StyleClassActivator.
7 years ago
Deadpikle
1f18bd3e66
Only calculate caret index on pointer pressed if left mouse down
7 years ago
Deadpikle
f98ee717f5
Adjusted TextBox right-click behavior
WPF does not allow dragging to change selection for right clicks
Furthermore, it only changes the selection on mouse up of right click, not mouse down, and only if the user clicked outside the current selection.
This commit adjusts TextBox selection behavior to work like WPF
7 years ago
Steven Kirk
5d007606ba
Rework HasSystemDecorations.
Make it a direct property that is backed by `SystemDecorations`. Moved the changed handlers to `OnPropertyChanged`.
7 years ago
Deadpikle
a429159c3c
Add SelectedText to TextBox
7 years ago
ahopper
9207d439c4
local copies of .Count
7 years ago
ahopper
44c5b43402
Reduce deferred renderer enumerator allocations
7 years ago
Benedikt Schroeder
55b4a1930b
Cleanup invalidation of measure and render
7 years ago
Benedikt Schroeder
6c948af49d
Fix TextWrapping
7 years ago
Benedikt Schroeder
2d78458f74
Add padding
7 years ago
Dariusz Komosinski
35bce7b031
Avoid creating handler unsubscribe disposables unless explicitly requested.
7 years ago
Steven Kirk
d4165b74a6
Use words for arrow keys.
7 years ago
Steven Kirk
557b1eb3a6
Allow overriding inner menu padding.
7 years ago
Steven Kirk
8ffe5fb88e
Added a few more keys to key gesture converter.
7 years ago
Steven Kirk
e53078bc0d
Expose platform KeyGesture conversion as static method.
7 years ago
Steven Kirk
0b3e4101e2
Give input gesture TextBlock a name.
7 years ago
Steven Kirk
6f6522e287
Make EventSubscription a readonly struct.
7 years ago
Steven Kirk
119a975610
Handle adding/removing application styles.
7 years ago
Steven Kirk
cfae69dfdc
Pass ResourceChanged messages to child styles.
Fixes #3590 .
7 years ago
Steven Kirk
6db44298bb
Handle adding/removing nested styles.
7 years ago
Steven Kirk
e9256a9e40
Initial implementation of add/remove styles.
Only currently works on top-level `Styles` collections, not working in `Application.Styles`.
7 years ago
Steven Kirk
6b902254bc
Refactored styling.
- Don't use Rx in the styling system. Instead introduces `IStyleActivator` which is like an `IObservable<bool>`-lite in order to cut down on allocations.
- #nullable enable on touched files
7 years ago
Steven Kirk
7fb62b20fa
Don't allow StyledElement.Styles to be set.
It's not settable in Application and I can't see a reason it should be in `StyledElement`. Also add a `Styles` ctor that takes a parent.
7 years ago
Steven Kirk
6f96d464af
Pass ResourceChanged messages to child styles.
Fixes #3590 .
7 years ago
Benedikt Schroeder
0c96a1e48e
Call InvalidateVisual when FormattedText is invalidated
7 years ago
Steven Kirk
df3fd0472e
Detach grid hack on logical tree detachment.
Doing it on visual tree detachment caused the menu to bug out when showing a submenu more than once.
7 years ago
Steven Kirk
71aca04e51
Improve platform display of KeyGesture.
7 years ago
Benedikt Schroeder
a6e86ae03e
Invalidate TextBox when text changes by binding
7 years ago
Dariusz Komosinski
1027168c61
Remove omen of bad performance.
7 years ago
Dariusz Komosinski
1909d7a778
Avoid IAffectsRender subscribe attempts on values that can't implement it.
7 years ago
Steven Kirk
022294ec7a
MenuItem.InputGestureText -> InputGesture
Changed `MenuItem`'s `string InputGestureText` property to `KeyGesture InputGesture` and gave it a value converter in the default template, because the string representation of a key gesture depends on platform, and putting platform-specific behavior into `ToString` isn't a good idea.
7 years ago
Nathan Garside
e5f0ac3dda
Fix event binding for HasSystemDecorations property
7 years ago
Mathis Rech
c28046cbbc
Fix padding inconsistency
The padding is always added to the side the headers are at, except when the headers are right, when the padding is at the bottom. I believe this was a typo.
7 years ago
Steven Kirk
fece964458
Remove commented-out code.
7 years ago
Steven Kirk
aea4bce0dd
Pass initial size for list.
7 years ago
Steven Kirk
5dc159dc42
Update Avalonia.DesktopRuntime to .NET core 3.1.
7 years ago
Steven Kirk
30e8cac05d
Update to .NET core 3.1.
7 years ago
Benedikt Schroeder
2d5258e118
Invalidate text layout when the available size changes
7 years ago
Steven Kirk
dbe03e090a
Disallow OneTime bindings in setters.
I'm not sure what should happen here when the style deactivates and is re-activated. Should the one-time binding trigger again? Or should it only trigger on first activation? Wait and see what the use-case for this is (if any).
7 years ago