Dan Walmsley
2f13cbff5f
dont return disposables, dispose as items are removed.
6 years ago
Dan Walmsley
64d76ce562
exporter sets IsChecked property.
6 years ago
Dan Walmsley
cf0fb80696
Fix IsCheckedProperty on managed side.
6 years ago
Michael Babienco
7807231947
Add IsChecked to NativeMenuItem
# Conflicts:
# src/Avalonia.Controls/NativeMenuItem.cs
6 years ago
Dan Walmsley
ef0b8a55b2
first stage implementation of deinitialisation of menu items.
6 years ago
Dan Walmsley
85e15ef9da
menu items subscribes to events itself.
6 years ago
Steven Kirk
faec3ae67f
Added NonVirtualizingStackLayout.
Required fixing/implementing a bunch of infrastructure around non-virtualizing layouts.
6 years ago
Dan Walmsley
c91b75b0b7
make menu re-order loop easier to follow.
6 years ago
Dan Walmsley
cd0ebbdd50
Revert "use a copy of lists as we will be removing from the list inside the loop."
This reverts commit 38f8dc73b3 .
6 years ago
Dan Walmsley
38f8dc73b3
use a copy of lists as we will be removing from the list inside the loop.
6 years ago
Dan Walmsley
52398648f7
remove comment.
6 years ago
Dan Walmsley
53d8dec1a6
Add owner on CommandProperty.
6 years ago
Dan Walmsley
149a7c6b90
always set main menu so it can be reparented in the osx backend to include the app menu.
6 years ago
Dan Walmsley
75652d094e
fix direct property implementations on nativemenu item.
6 years ago
Dan Walmsley
53e14acb9d
only call SetMenu once or if the menu has actually changed.
6 years ago
Dan Walmsley
f2031cddab
rename some variables.
6 years ago
Dan Walmsley
6895ea9dd0
clean event subscriptions before updating menus.
6 years ago
Dan Walmsley
a210267a2b
remove cleanup methods.
6 years ago
Dan Walmsley
e23e9a2774
working update of menuitems.
6 years ago
Dan Walmsley
00812297bc
fix updating menu item.
6 years ago
Dan Walmsley
0cf079b47f
only obtain object from managed side once.
6 years ago
Dan Walmsley
0d52c8b37b
whitespace.
6 years ago
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
Luis v.d.Eltz
073bbb42e4
Fixed typo
6 years ago
Steven Kirk
3f3fb1a3f8
Update TreeView index when not attached to logical tree.
Fixes #3551 .
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
Steven Kirk
608efb1140
Invalidate path on geometry change.
Fixes #2680 .
6 years ago
Deadpikle
9463e278a5
Fix undo not available for multiple key types
6 years ago
Deadpikle
d8f74b7e41
Cut now triggers an undo
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