Skip to content

Commit ffb4fd3

Browse files
BornToBeRootclaude
andauthored
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.claude/skills/feature-review/SKILL.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,5 @@ When fixing:
237237
the manual Windows tests of the handover file.
238238
- Add strings to `Strings.resx` and, in alphabetical order, to `Strings.Designer.cs`.
239239
- Update the feature documentation and add a changelog entry in `Website/docs/changelog/next-release.md`.
240-
- Never modify `Source/3rdparty/`.
240+
- Change `Source/3rdparty/Dragablz` only when the fix needs it: keep it small, don't reformat, add an entry to its
241+
`CHANGELOG.md` (see AGENTS.md).

‎.github/pull_request_template.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Closes #
4040
- [ ] The [documentation](https://github.com/BornToBeRoot/NETworkManager/tree/main/Website/docs) is updated (if needed).
4141
- [ ] An entry is added to the [changelog](https://github.com/BornToBeRoot/NETworkManager/blob/main/Website/docs/changelog/next-release.md).
4242
- [ ] New texts are only added to `Strings.resx` (translations are done on [Transifex](https://app.transifex.com/BornToBeRoot/NETworkManager/dashboard/)).
43-
- [ ] No files in `Source/3rdparty/` are changed.
43+
- [ ] Changes in `Source/3rdparty/` (if any) are needed and listed in the `CHANGELOG.md` of that library.
4444

4545
## Contributing
4646

‎.github/workflows/codeql.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
steps:
3434
- name: Checkout repository
3535
uses: actions/checkout@v7
36-
with:
37-
submodules: 'true'
3836

3937
# The C# autobuild needs the SDK from Source/global.json (the runner image may only have an older one)
4038
- name: Setup .NET

‎.gitmodules‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎AGENTS.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ REPOSITORY_ROOT/
3434
│ ├── NETworkManager.Documentation/ # Documentation resources
3535
│ ├── NETworkManager.Setup/ # WiX installer project
3636
│ ├── NETworkManager.Tests/ # xUnit unit tests (run by AppVeyor)
37-
│ └── 3rdparty/ # Third-party dependencies (Dragablz: submodule of the fork BornToBeRoot/Dragablz)
38-
│ └── (managed-manually) # NOTE: Maintained manually — AI agents MUST NOT modify this directory
37+
│ └── 3rdparty/ # Third-party source code maintained in this repository
38+
│ └── Dragablz/ # Dragablz (MIT), stripped to what we use - see its README.md / CHANGELOG.md
3939
├── Website/ # Docusaurus documentation website
4040
├── Scripts/ # Build and automation scripts
4141
│ ├── Create-FlagFromSVG.ps1 # Create flag images
@@ -82,7 +82,7 @@ REPOSITORY_ROOT/
8282
`Source/NETworkManager.Controls/LucideIcons.cs` (only the used icons, see `$Icons` in the script) and drawn as lines by
8383
`LucideIcon` (stroke 1.75); license in `Source/NETworkManager.Documentation/Licenses/Lucide.txt`
8484
- **MahApps.Metro.SimpleChildWindow** - Dialog windows
85-
- **Dragablz** - Tearable/draggable tab control
85+
- **Dragablz** - Tearable/draggable tab control (source in `Source/3rdparty/Dragablz`, modified)
8686
- **GongSolutions.Wpf.DragDrop** (`gong-wpf-dragdrop`) - Drag and drop framework
8787
- **Progress / loading** - MahApps `MetroProgressBar` (style `DefaultMetroProgressBar`) and `ProgressRing` in three sizes
8888
(`ProgressRingSmall` 16 inline, `ProgressRingMedium` 24 dialogs, `ProgressRingLarge` 48 centered), see
@@ -160,11 +160,9 @@ Website/
160160

161161
### Building the Application
162162

163-
**Clone with Submodules**:
163+
**Clone**:
164164
```powershell
165165
git clone https://github.com/BornToBeRoot/NETworkManager.git
166-
cd NETworkManager
167-
git submodule update --init --recursive
168166
```
169167

170168
**Build via Visual Studio/Rider**:
@@ -378,7 +376,7 @@ The website is deployed to GitHub Pages at: https://borntoberoot.net/NETworkMana
378376
- **`.github/dependabot.yml`**: Dependabot configuration
379377
- **`.github/mergify.yml`**: Mergify auto-merge configuration
380378
- **`.github/transifex.yml`**: Transifex translation sync configuration
381-
- **`.gitmodules`**: Git submodule configuration (Dragablz)
379+
- **`Source/3rdparty/Dragablz/`**: Dragablz source (`LICENSE`, origin in `README.md`, changes in `CHANGELOG.md`)
382380
- **`Website/docusaurus.config.js`**: Documentation site configuration
383381
- **`Website/docs/changelog/next-release.md`**: Changelog of the upcoming release
384382
- **`.claude/skills/feature-review/`**: Feature review skill incl. the app's conventions (`references/conventions.md`)
@@ -426,9 +424,6 @@ npm run clear # or yarn clear
426424
### Git Operations
427425

428426
```powershell
429-
# Update submodules
430-
git submodule update --init --recursive
431-
432427
# Check status
433428
git status
434429
@@ -554,7 +549,7 @@ SemiBold (section headers), `MessageTextBlock` 16 gray (messages in empty areas)
554549
`DragablzTabHeaderBorder` / `Title` / `CloseIcon` / `AccentLine` in `DragablzStyles.xaml` - change the tab look only
555550
there); a single tab is shown as the view title. Dragged-out tabs merge on the whole tab bar
556551
(`MergeTargetArea="HeaderPanel"`) and the target tab bars show a slot (`ShowMergeHint`, `MergeHintTemplate` in
557-
`DefaultTabablzControl`) - features of our Dragablz fork (BornToBeRoot/Dragablz, submodule).
552+
`DefaultTabablzControl`) - features of our modified Dragablz (`Source/3rdparty/Dragablz`).
558553
- Data grids: row height 30, semibold headers, accent-tinted selection.
559554
- Windows have rounded corners on Windows 11 (`WindowCornerHelper.RoundCorners`, DWM).
560555

@@ -592,7 +587,8 @@ see `.claude/skills/feature-review/references/conventions.md`.
592587
content transitions** when switching tools; check `AppearanceManager.AnimationsEnabled` when an animation starts):
593588
`ChildWindowAnimation` (dialogs zoom 92 → 100 %, run command `Kind="SlideDown"`), `SelectionIndicatorAnimation`
594589
(navigation indicator), `ExpanderAnimation` (chevron rotates, content fades in; `SwapChevron` for the profile panel),
595-
`SmoothProgress`, notification slide-in. Short color / opacity fades in XAML storyboards (button and navigation hover /
590+
`SmoothProgress`, notification slide-in, tab reorder slide while a tab is dragged (Dragablz `StackOrganiser`,
591+
`Canvas.Left` - exception to the `RenderTransform` rule, switch `StackOrganiser.AnimationsEnabled` set in `App.xaml.cs`). Short color / opacity fades in XAML storyboards (button and navigation hover /
596592
pressed layers, tooltip, dialog overlay) don't move anything and are always shown (documented in the Animations
597593
setting). Native windows (Remote Desktop, PuTTY, PowerShell, TigerVNC,
598594
WebView2) can't be animated, clipped or put in transparent windows.
@@ -639,8 +635,12 @@ WebView2) can't be animated, clipped or put in transparent windows.
639635
5. **Update Documentation**: Changes to features should include doc updates and a changelog entry in `Website/docs/changelog/next-release.md`
640636
6. **Test on Real Networks**: Network tools require real network testing
641637
7. **Version Management**: Assembly version is auto-generated in CI/CD
642-
8. **Submodules**: Remember to init/update submodules (Dragablz in `Source/3rdparty/`)
643-
9. **DO NOT Modify 3rdparty**: The `Source/3rdparty/` directory contains the Dragablz submodule and is maintained manually — AI agents MUST NOT modify this directory
638+
8. **3rdparty (Dragablz)**: `Source/3rdparty/Dragablz` is the Dragablz library (MIT), maintained in this repository.
639+
Change it only when a feature or fix needs it, keep the changes small, don't reformat / restyle the code, add an
640+
entry to its `CHANGELOG.md` and keep its `LICENSE`
641+
9. **Third-party licenses**: Code or libraries from other projects need their license in
642+
`Source/NETworkManager.Documentation/Licenses/` (+ `Content` entry in the csproj), an entry in `LibraryManager` and in
643+
the README; embedded single files also keep the license header (e.g. `AirspacePanel.cs`)
644644
10. **Automation Scripts**: Use scripts in `Scripts/` directory for updating lists (OUI, ports, WHOIS servers)
645645
11. **Check CI Status**: Both AppVeyor (main build) and GitHub Actions (CodeQL, website) must pass
646646
12. **Dependency Updates**: Dependabot automatically creates PRs for dependency updates

‎README.md‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,9 @@ Build NETworkManager yourself with these steps:
179179

180180
2. **Clone the Repository**:
181181

182-
- Clone with submodules:
183-
```powershell
184-
git clone https://github.com/BornToBeRoot/NETworkManager.git
185-
cd NETworkManager
186-
git submodule update --init --recursive
187-
```
182+
```powershell
183+
git clone https://github.com/BornToBeRoot/NETworkManager.git
184+
```
188185

189186
3. **Build**:
190187
- Open `.\Source\NETworkManager.sln` in Visual Studio or JetBrains Rider.
@@ -213,7 +210,7 @@ A huge thank you to our supporters and contributors who make NETworkManager poss
213210
- [ControlzEx](https://github.com/ControlzEx/ControlzEx) - Shared Controlz for WPF and more.
214211
- [DnsClient.NET](https://github.com/MichaCo/DnsClient.NET) - Powerful, high-performance open-source library for DNS lookups.
215212
- [Docusaurus](https://docusaurus.io/) - Easy to maintain open source documentation websites.
216-
- [Dragablz](https://dragablz.net/) - Tearable TabControl for WPF.
213+
- [Dragablz](https://github.com/ButchersBoy/Dragablz) - Tearable TabControl for WPF (modified, included in `Source/3rdparty/Dragablz`).
217214
- [GongSolutions.Wpf.DragDrop](https://github.com/punker76/gong-wpf-dragdrop) - An easy to use drag'n'drop framework for WPF.
218215
- [IPNetwork](https://github.com/lduchosal/ipnetwork) - .NET library for complex network, IP, and subnet calculations.
219216
- [LiveCharts2](https://github.com/Live-Charts/LiveCharts2) - Beautiful, interactive charts, maps, and gauges.

‎Source/.editorconfig‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
# CA1416: Plattformkompatibilität überprüfen
44
dotnet_diagnostic.CA1416.severity = silent
5+
6+
# Vendored third-party code (Dragablz): keep its original style, no analyzer / format findings
7+
[3rdparty/**.cs]
8+
generated_code = true

‎Source/3rdparty/Dragablz‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)