Steven Kirk
c6860ceefa
Bypass ArrangeCore logic in top-level controls.
Top-level controls cannot have a `Bounds` offset, and their `(Min)/(Max)/Width` and `(Min)/(Max)/Height` reflects the client size of the actual window, so don't need to be applied at the layout level.
Fixes #3784
6 years ago
Nikita Tsukanov
48abbcdf91
[X11] Special handling for XI2 events when window is blocked by child Dialog
6 years ago
Steven Kirk
faec3ae67f
Added NonVirtualizingStackLayout.
Required fixing/implementing a bunch of infrastructure around non-virtualizing layouts.
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
Steven Kirk
a98b22c40c
Pass close event to Popup.Closed.
So that the event can be marked as handled if necessary. Mark the event as handled in `AutoCompleteBox`, `ComboBox` and `DatePicker`, but _not_ `ContextMenu`. Fixes #3760 .
6 years ago
Steven Kirk
d4977eaa46
Prevent handling closing click in Popup.
6 years ago
FoggyFinder
f1d54de97f
revert last commit, use Text instead of rects in checks
6 years ago
FoggyFinder
0aa3053661
update
6 years ago
Steven Kirk
608efb1140
Invalidate path on geometry change.
Fixes #2680 .
6 years ago
FoggyFinder
94a5725a03
apply transformation to x with alignment in case of empty text
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
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
7 years ago
Nikita Tsukanov
182cda5275
[X11, FlyWM] Completely remove WM_TRANSIENT_FOR property
7 years ago
Nikita Tsukanov
bce28b3d35
Fixed InitialFileName for GTK-based file dialog
7 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.
7 years ago
Dariusz Komosinski
cfb62859f5
Cleanup code.
7 years ago
Dariusz Komosinski
8e780cb01a
Fix managed drag and drop.
7 years ago
Dariusz Komosinski
177180c909
Clarify magic number.
7 years ago
Dariusz Komosinski
0d5af630f9
Cleanup even more.
7 years ago
Dariusz Komosinski
764e7aff01
Initial refactor of win32 window.
7 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
7 years ago
Dariusz Komosinski
4dd5e08d9e
Get rid of class handler in favor of OnPropertyChanged.
7 years ago
Jumar Macato
6b84fc2ad5
Don't constrain header's ContentPresenter on TreeViewItem
7 years ago
Andrey Kunchev
6e54db32e9
fix #3692
7 years ago
Benedikt Schroeder
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
7 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
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
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