Dan Walmsley
4e54fb2e46
somewhat working updating menus.
6 years ago
Dan Walmsley
06f57f7e44
Insert Native Menus by index instead of just adding them in order.
6 years ago
Dan Walmsley
5cc02c2d09
create dummy menu root.
6 years ago
Dan Walmsley
5a3c984b4d
allow DoLayoutReset to be called when menu is still null.
6 years ago
Dan Walmsley
0f35059055
move code to own files.
6 years ago
Dan Walmsley
aa94dc476c
subscript to events and notify of changes.
6 years ago
Dan Walmsley
2e682e292e
initial work towards updating menus with virtual DOM.
6 years ago
Deadpikle
681911098c
SelectedText = null -> clear text
6 years ago
Steven Kirk
3fc21f30b4
Invalidate brush when Opacity changes.
Fixes #2755 .
6 years ago
Steven Kirk
b14e1a999b
Share default small change value across controls.
6 years ago
Steven Kirk
2cacd38ce5
Add missing access modifier.
6 years ago
Steven Kirk
ab67200954
Implement finding common base type.
Had to also change the unit test to use controls that all have the `Background` property in a common base type.
6 years ago
Deadpikle
14b227037b
Delete selection if SelectedText = ""
6 years ago
Steven Kirk
5ad8c41f37
Fix NRE in ContextMenu.
6 years ago
Steven Kirk
c443336928
Fix leaks in attached context menu,
6 years ago
Steven Kirk
1cb7d830c7
Hack to reset focus when context menu closed.
Including a fix to `FocusManager` to ensure that it doesn't try to set focus to an invisble focus scope. Fixes #3738 .
6 years ago
Steven Kirk
323cfdca3a
Make ContextMenu leak tests fail again.
By adding focus/input manager.
6 years ago
Steven Kirk
76b4d17abf
Remove ContextMenu from logical tree.
When the `ContextMenu` is not attached to a control, i.e. it is shown using `Show(control)` then we need to detach it from the logical tree once hidden otherwise it will leak, causing #3738 .
6 years ago
Steven Kirk
b42458be76
Input manager subscription may be null.
As we accept a null `InputManager` for unit testing.
6 years ago
Nikita Tsukanov
58a20b6109
[X11] Emulate synchronous resize/move events until window is mapped for the first time
6 years ago
Marcus Wichelmann
92770765e3
Fixed bitmaps not getting disposed correctly causing a memory leak in RemoteWidget
6 years ago
Steven Kirk
b9313c2dec
Fix large/small scroll in ScrollViewer.
For non-logical scrolling:
- Use 16 for small scroll size (value taken from WPF)
- Use viewport size for large scroll
For logical scrolling, use the `ScrollSize`/`PageScrollSize` defined on `ILogicalScrollable`. Note that this required a small breaking change to `ILogicalScrollable`.
Fixed #3245
6 years ago
Steven Kirk
dabf4a3d06
Added EllipticalArc link/licence.
6 years ago
Steven Kirk
5397efc4f0
Remove some left-over copyright headers.
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Nikita Tsukanov
b85fd31d03
Immediate rendering support for X11 platform via render loop
6 years ago
Nikita Tsukanov
182cda5275
[X11, FlyWM] Completely remove WM_TRANSIENT_FOR property
6 years ago
Nikita Tsukanov
bce28b3d35
Fixed InitialFileName for GTK-based file dialog
6 years ago
Steven Kirk
18d2238b91
Remove sanity check from SetParent.
In the case of #3708 , the sanity check fails because the parent call to `SetParent` hasn't yet completed - it's the setting of `InheritanceParent` on the parent that causes the child to get attached.
6 years ago
Dariusz Komosinski
cfb62859f5
Cleanup code.
6 years ago
Dariusz Komosinski
8e780cb01a
Fix managed drag and drop.
6 years ago
Dariusz Komosinski
177180c909
Clarify magic number.
6 years ago
Dariusz Komosinski
0d5af630f9
Cleanup even more.
6 years ago
Dariusz Komosinski
764e7aff01
Initial refactor of win32 window.
6 years ago
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
Andrey Kunchev
6e54db32e9
fix #3692
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
6 years ago
Steven Kirk
bd571c3459
Remove manual capacity management.
6 years ago
Steven Kirk
33d3a66c86
Fix comma (or) style selector.
- `Selector.Or`'s first parameter isn't a `Selector` - remove that check as I don't think it's needed anyway
- Make sure last selector is added to `XamlIlOrSelectorNode`
Fixes #2838
6 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
6 years ago
Dariusz Komosinski
b3a8b39670
Remove extra allocations from Scrollbar constructor.
6 years ago
Deadpikle
a8663cd1f3
Fix middle click being able to change selection
6 years ago
Dariusz Komosinski
0e03dab3fe
Remove dead code.
6 years ago
Dariusz Komosinski
dc93d14a1b
Return IReadOnlyList from most of the AvaloniaPropertyRegistry calls so users are not forced into allocating enumerators.
6 years ago
Dariusz Komosinski
3ea20ab7d0
Avoid allocating extra delegates when initializing and deinitializing StyleClassActivator.
6 years ago
Deadpikle
1f18bd3e66
Only calculate caret index on pointer pressed if left mouse down
6 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
6 years ago