Repository navigation
Commit ffb4fd3
Chore: vendor dragablz and apply some bug fixes & improvements (#3717)
* Chore: Copy Dragablz into the repository instead of the submodule
The library (fork BornToBeRoot/Dragablz 5415e71, based on upstream
ButchersBoy/Dragablz e493913) is now maintained in Source/3rdparty/Dragablz,
flattened to one project. No demos, tests, solution or NuGet package.
LICENSE (MIT) is kept, README.md documents the origin, CHANGELOG.md all
changes compared to the original. Assembly, namespaces and pack URIs are
unchanged. AppVeyor stamps the file version at the new path.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Remove the submodule from CI, docs and agent rules
AppVeyor and CodeQL no longer init submodules, README / AGENTS.md no
longer clone with submodules. The rule "don't modify 3rdparty" is replaced
by how to maintain the vendored Dragablz (small changes, CHANGELOG.md,
keep the LICENSE) and a rule for third-party licenses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: License of ControlzEx
Licenses/ControlzEx.txt contained the Dragablz license and LibraryManager
linked the Dragablz license. Now the ControlzEx license (MIT, Jan Karger,
Bastian Schmidt) from github.com/ControlzEx/ControlzEx (develop).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove the MaterialDesign theme and Ripple
Not used by NETworkManager (MahApps theme only). Ripple was only used by
the MaterialDesign theme; Dockablz.xaml was empty.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove DragablzWindow
NETworkManager uses MahApps windows for the tab host windows. Removes the
window, its icon, the window message / system command enums, the
SendMessage / PostMessage imports and the window styles in Generic.xaml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove unused classes and template files
HeaderedItemViewModel, TabablzItemStyleSelector, Horizontal/Vertical-
PositionMonitor and HitTest are not referenced by the library or
NETworkManager; Properties/Resources.* and Settings.* only contain project
template samples.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Reduce the MahApps theme to the used styles
NETworkManager only uses MahAppsFocusVisual, MahAppsInvisibleThumbStyle and
MahAppsTabablzControlStyle (as base of DefaultTabablzControl, which sets
its own ItemContainerStyle). The other styles were merged into the
application resources without being used.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Update the license of MahApps.Metro
The license file still had "Copyright (c) 2016 MahApps"; MahApps.Metro
(2.4.11, develop, master) is now "Copyright (c) .NET Foundation and
Contributors".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove the remaining window-only natives (review #3)
SetWindowPlacement, WINDOWPLACEMENT, RECT, SW_SHOWNORMAL and
GetRawCursorPos were only used by the removed DragablzWindow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove the trapezoid offset from MahAppsTabablzControlStyle (review #4)
AdjacentHeaderItemOffset=-12 belonged to the removed trapezoid tab style;
without it the default tab items would overlap. NETworkManager sets 0 in
DefaultTabablzControl, so no visible change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Dragablz - Mark the fork's MahApps theme fix as superseded (review #6)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Feature review skill - Allow small Dragablz changes (review #2)
Matches the new AGENTS.md rule: Dragablz is maintained in the repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Migration steps for clones with the Dragablz submodule (review #1)
Switching to a commit without the submodule aborts while the old
submodule is checked out (tested). README of the folder has the steps,
next-release.md an entry under Dependencies, Refactoring & Documentation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Reset the offered drop zone after every drag (dragablz review #1)
Layout.ItemDragCompleted returned before resetting _currentlyOfferedDropZone
when the item was merged (IsDropTargetFound) or its tab control had more
items. A later drag could branch into that stale zone (closed window).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Skip merge targets that are hidden or closed (dragablz review #5)
The merge targets are collected when the drag starts. If one of their
windows closed during the drag, PointToScreen threw (no PresentationSource).
GetMergeTargetScreenBounds now returns null for hidden / disconnected
targets, which also excludes hidden tab controls in MonitorReentry.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Insert position of merged tabs above 100 % scaling (dragablz review #2)
ReceiveDrag used the difference of two screen positions (pixels) as item
X / Y (DIPs). PointFromScreen converts the cursor position to DIPs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Own header items organiser per tab control (dragablz review #7)
The default value of HeaderItemsOrganiser was a single HorizontalOrganiser
shared by all controls (NETworkManager sets AdjacentHeaderItemOffset to
the default 0, so the per-control organiser was never created). Its drag
state kept the last dragged items and their window alive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Null checks in RemoveItem (dragablz review #9)
InterTabController.InterTabClient can be null (binding to a view model
property without a value); the items holder is an optional template part.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Null checks in the static CloseItem (dragablz review #8)
Skips tab controls without template and tabs without content, and
materializes the list before closing (the close modifies the items).
Not called by NETworkManager, cheap to make safe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Changelog for the Dragablz tab fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Ignore drop zones of unloaded layouts on drop (final review #1)
The offered drop zone of a layout whose window closed during the drag was
still used on drop: Branch moved the item into the closed window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Clear the drag state of StackOrganiser (final review #2-#4)
_siblingItemLocationOnDragStart was never cleared (kept the items of the
last drag alive) and indexed without TryGetValue (KeyNotFoundException for
an item added during the drag). Cleared after the drag, current location
as fallback. Organisers shared by a style are harmless now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Completion of a replaced tab slide animation (final review #6)
The completion of a replaced storyboard set its old target location and
removed the target of the newer storyboard. It now only acts if its
target is still the active one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Tab slide animation follows the Animations setting (final review #5)
The tabs slid to their new position while a tab was dragged regardless of
Settings > Appearance > Animations. StackOrganiser.AnimationsEnabled (set
in App.xaml.cs from AppearanceManager.AnimationsEnabled) moves them
directly without animations; quadratic ease-out like the other animations.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Margin of the horizontal branch splitter (final review #9)
Margin -3,-3 (all sides) let the splitter overlap the neighbouring branch
on the left / right; 0,-3 like the column splitter's -3,0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove the unused trapezoid / sizable tab styles (final review #7)
TrapezoidDragableTabItemStyle, SizableFromBottomRightDragablzItemStyle,
CloseItemCommandButtonStyle and CloseCommandHighlightColor were not
referenced; Trapezoid and ShowDefaultCloseButtonConverter only by them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove dead members (final review #8)
ContinuationIndex, _rightMouseUpCleanUpDisposable (+ the right mouse up
override that only reset it), a Debug.WriteLine leftover and the empty
ItemsChanged handler.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Dragablz README - generated_code only silences analyzers (final review #10)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Track and stop the tab slides per item (final review 2 #1, #2, #4)
- SendToLocation compares with the target of a running slide, so a drag
back to the original location during the slide is no longer ignored.
- A direct placement to another location (Organise after a breach /
merge) or animations off stops the running slide.
- The organiser forgets removed items (ClearContainerForItemOverride),
also when the drag ended with a breach or merge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove more dead code (final review 2 #5-#7)
FloatRequestedEvent (unused), the DragablzColors members only used by the
removed DragablzWindow styles (one DWM call less at startup) and unused
usings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Remove the Dragablz MahApps theme (final review 2 #8)
The tab styles use the app's InvisibleThumbStyle and FocusVisual.Ring
(design system focus ring instead of the dotted MahApps one). The only
other effective setter of MahAppsTabablzControlStyle (Foreground) moved
into DefaultTabablzControl. App.xaml no longer merges Themes/MahApps.xaml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Tidy the right click thumb handling (final review 2 #9)
Call base before the await (it ran after the event was routed), restore
the thumb that was disabled (local, the template can change meanwhile).
The polling stays: a context menu takes the button up, a ButtonUp handler
would leave the thumb disabled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Organise sorts by the slide target (final review 3 #1, #4, #9)
Organise(IEnumerable) sorted by X / Y, which keep the old location during
a slide; since SetLocation stops a slide to another location, an Organise
(measure, tab closed) during a slide restored the old order. ForgetItem is
now an IItemsOrganiser method (default no-op) instead of a StackOrganiser
cast. CHANGELOG no longer claims a shared organiser is state-free.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Overlapping right clicks and replaced thumb (final review 3 #2, #3)
A second right click during the wait saved the disabled state and could
leave the thumb disabled (no drag). The thumb is only restored if it is
still the active one, otherwise it overwrote the custom thumb selection.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Dragablz - Remove DragablzColors and the DWM call (final review 3 #8)
WindowGlassBrush was only used for the hover background of the default
add button styles (never shown in NETworkManager), but loading them ran an
undocumented DWM call (dwmapi #127). Uses SystemColors.ActiveCaptionBrush.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Tab headers use the default focus visual (final review 3 #5, #6)
The explicit FocusVisual.Ring setter duplicated the global default
(SystemParameters.FocusVisualStyleKey in Theme.xaml). Changelog entry for
the changed focus visual (was the dotted MahApps rectangle).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Tab content inherits the theme foreground (final review 3 #7, #5)
DefaultTabablzControl set Foreground to the theme background (taken over
from the removed Dragablz MahApps theme), so content without its own
foreground was drawn in the background color. Changelog entry for the
back-and-forth reorder fix (final review 2 #1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Chore: Remove the empty IsWrappingTabItem trigger from the tab item style
Only contained a commented-out setter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: Drag state of embedded windows from Dragablz
EmbeddedWindowDragPresenter gets IsDragging from its style: the window of
the tab is dragged (TabablzControl.IsDraggingWindow) or a dragged window
can be dropped into its layout (Layout.IsParticipatingInDrag). Removes the
five ConfigurationInfo.Is*WindowDragging flags and the two switches in
DragablzTabHostWindow (set / reset on close).
Differences: a single tab dragged in the main window's tab bar now also
shows the placeholders of the other windows (their drop zones were active
but covered); after a merge the placeholders stay until the mouse is
released (before: until the dragged window closed).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: Shared helpers for the tabs of a window
DragablzTabItem.GetTabItems(window) and FocusSelectedEmbeddedWindow(window)
replace the seven visual tree loops in MainWindow, DragablzTabHostWindow
and the PuTTY / PowerShell host view models (same behaviour in the main
window and the tab windows). The visual tree is kept instead of
TabablzControl.GetLoadedInstances: a branch that was just created is not
loaded yet, its tabs must still be closed with the window. The list is
materialized, so closing tabs while iterating is safe.
SetTabHeader searches all windows instead of only the active one: a tab
in a tab window that is not active kept its old header.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Changelog for the tab title in inactive tab windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Drag state of embedded windows after a tab moved to another window
The FindAncestor bindings of the drag state (68bc5d6) are resolved only
once (BindingExpression.AttachToContext, no re-attach on a visual parent
change). Tear out / merge / split move the view of a tab, so it stayed
bound to the tab control and layout of the old window (wrong, or never
true once that window closed). EmbeddedWindowDragPresenter now binds to
the ancestors of its current place on every Loaded and clears the binding
on Unloaded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Revert "Fix: Drag state of embedded windows after a tab moved to another window"
This reverts commit 6f802f7.
* Revert "Refactor: Drag state of embedded windows from Dragablz"
This reverts commit 68bc5d6.
* Fix: Dragablz - Tear out only when the tab leaves the whole tab bar (HeaderPanel)
With MergeTargetArea.HeaderPanel the whole tab bar accepts a dragged tab,
but MonitorBreach measured against the area of the tabs. A tab merged
into an empty tab bar is placed at the start, the cursor was outside of
it and the tab was torn out again at once (with tabs it is placed behind
the last tab, near the cursor). The breach now uses the header panel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Content of a removed tab stayed visible without its tab
While an item was removed from the source, UpdateSelectedItem could
create a new ContentPresenter for a stale SelectedItem (the removed item,
e.g. merged and torn out again right away); RemoveItem / MonitorBreach
only removed the presenter they found before. CreateChildContentPresenter
skips items that are no longer in the control, and all presenters of the
removed item are removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Docs: Changelog - link the entries to #3717
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Stop the slide of a tab when it is grabbed (final review 4 #2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Horizontal tear out at the screen edge (final review 4 #3, #9)
With the header panel as breach area, the horizontal grace (8) beyond it
can't be reached when the panel ends at the screen edge (maximized
window). No grace for the header panel. Renamed the mouse position
variable to the breach area.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Dragablz - Remove the content presenters in OnItemsChanged (final review 4 #4, #8)
The sweep of all presenters of a removed item now runs in OnItemsChanged
(every removal path) instead of only in RemoveItem / MonitorBreach. An
item without content gets no presenter (FindChildContentPresenter can't
find it, so a new one was added on every selection change).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Refactor: GetTabItems is lazy again (final review 4 #7)
SetTabHeader stops at the first match (scan start), OnClosing materializes
the list itself before closing the tabs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix: Closing a tab window reset the drag state of another window (final review 4 #1)
OnClosing always set Is<Tool>WindowDragging to false, also when another
window of the tool was dragged (e.g. this one closed because its last
session ended): the embedded windows covered the drop zones again. Only
reset it if this window is dragged (closed while merged). OnClosing
materializes GetTabItems before closing the tabs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent d4fb119 commit ffb4fd3
100 files changed
Lines changed: 9078 additions & 129 deletions
File tree
- .claude/skills/feature-review
- .github
- workflows
- Source
- 3rdparty
- Dragablz
- Converters
- Core
- Dockablz
- Properties
- Referenceless
- Themes
- NETworkManager.Documentation
- Licenses
- NETworkManager
- Controls
- Resources/Styles
- ViewModels
- Website/docs
- changelog
- settings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
| 241 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | 166 | | |
169 | 167 | | |
170 | 168 | | |
| |||
378 | 376 | | |
379 | 377 | | |
380 | 378 | | |
381 | | - | |
| 379 | + | |
382 | 380 | | |
383 | 381 | | |
384 | 382 | | |
| |||
426 | 424 | | |
427 | 425 | | |
428 | 426 | | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | 427 | | |
433 | 428 | | |
434 | 429 | | |
| |||
554 | 549 | | |
555 | 550 | | |
556 | 551 | | |
557 | | - | |
| 552 | + | |
558 | 553 | | |
559 | 554 | | |
560 | 555 | | |
| |||
592 | 587 | | |
593 | 588 | | |
594 | 589 | | |
595 | | - | |
| 590 | + | |
| 591 | + | |
596 | 592 | | |
597 | 593 | | |
598 | 594 | | |
| |||
639 | 635 | | |
640 | 636 | | |
641 | 637 | | |
642 | | - | |
643 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
| |||
213 | 210 | | |
214 | 211 | | |
215 | 212 | | |
216 | | - | |
| 213 | + | |
217 | 214 | | |
218 | 215 | | |
219 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
This file was deleted.
0 commit comments