diff --git a/AGENTS.md b/AGENTS.md
index 17d4f4ab31..ddf704ad0e 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -97,8 +97,9 @@ website changes also need `Build Website`), Transifex (`transifex.yml`: syncs th
- **Generated lists** (OUI, ports, WHOIS servers, public suffixes, world map, Lucide icons) are updated with the scripts
in `Scripts/`, not by hand.
- **Tests**: xUnit in `Source/NETworkManager.Tests//Tests.cs`. Put testable logic (parsing, mapping,
- decisions) in small public static methods in `NETworkManager.Models` (no `InternalsVisibleTo`). UI, system APIs and
- network behaviour are tested manually on Windows.
+ decisions) in small public static methods in `NETworkManager.Models` (no `InternalsVisibleTo`); helpers that
+ `NETworkManager.Controls` uses go to `NETworkManager.Utilities` (Models references Controls), e.g. `InputConverter`.
+ UI, system APIs and network behaviour are tested manually on Windows.
- **Plans and reviews**: local, not committed: `.claude/plans/` and `.claude/reviews/` (e.g. `ping-monitor.md`). Read the
file of the area first - it records verified findings, decisions and open items.
diff --git a/Source/NETworkManager.Controls/ComboBoxPasteBehavior.cs b/Source/NETworkManager.Controls/ComboBoxPasteBehavior.cs
deleted file mode 100644
index cdcd3a47cd..0000000000
--- a/Source/NETworkManager.Controls/ComboBoxPasteBehavior.cs
+++ /dev/null
@@ -1,99 +0,0 @@
-using System;
-using System.Linq;
-using System.Runtime.InteropServices;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Input;
-
-namespace NETworkManager.Controls;
-
-///
-/// Attached property that converts multiline text (e.g. a column pasted from Excel) into a
-/// semicolon-separated single line when pasted into an editable .
-///
-/// Without this the WPF TextBox inside the ComboBox ( is
-/// false) silently drops everything after the first line when multiline text is pasted.
-/// The conversion is applied by reading the clipboard, replacing the editable text box's
-/// selection with the converted text, and marking as
-/// handled - the system clipboard itself is never modified, so other applications (or a
-/// subsequent paste elsewhere) are unaffected.
-///
-public static class ComboBoxPasteBehavior
-{
- public static readonly DependencyProperty ConvertMultilineToSemicolonProperty =
- DependencyProperty.RegisterAttached(
- "ConvertMultilineToSemicolon",
- typeof(bool),
- typeof(ComboBoxPasteBehavior),
- new PropertyMetadata(false, OnConvertMultilineToSemicolonChanged));
-
- public static void SetConvertMultilineToSemicolon(UIElement element, bool value) =>
- element.SetValue(ConvertMultilineToSemicolonProperty, value);
-
- public static bool GetConvertMultilineToSemicolon(UIElement element) =>
- (bool)element.GetValue(ConvertMultilineToSemicolonProperty);
-
- private static void OnConvertMultilineToSemicolonChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
- {
- if (d is not ComboBox comboBox)
- return;
-
- if ((bool)e.NewValue)
- CommandManager.AddPreviewExecutedHandler(comboBox, OnPreviewExecuted);
- else
- CommandManager.RemovePreviewExecutedHandler(comboBox, OnPreviewExecuted);
- }
-
- private static void OnPreviewExecuted(object sender, ExecutedRoutedEventArgs e)
- {
- // Keyboard shortcut (Ctrl+V) and the paste context menu item both route through
- // ApplicationCommands.Paste. Editing commands don't need to be handled here.
- if (e.Command != ApplicationCommands.Paste)
- return;
-
- // The command originates from the focused editable text box inside the ComboBox
- // template, which is where the pasted text actually needs to be inserted.
- if (e.OriginalSource is not TextBox textBox)
- return;
-
- string text;
-
- try
- {
- if (!Clipboard.ContainsText())
- return;
-
- text = Clipboard.GetText();
- }
- catch (ExternalException)
- {
- // Clipboard is temporarily locked by another process - fall back to the default paste.
- return;
- }
-
- // Only intervene when there is actual multiline content (e.g. a column pasted from
- // Excel). Otherwise let the default paste command handle it as usual.
- if (!text.Contains('\n') && !text.Contains('\r'))
- return;
-
- var converted = string.Join(";", text
- .Replace("\r\n", "\n")
- .Replace('\r', '\n')
- .Split('\n', StringSplitOptions.RemoveEmptyEntries)
- .Select(x => x.Trim()));
-
- // Replace the current selection with the converted text ourselves and mark the command
- // handled, instead of letting the default paste run - this avoids touching the system
- // clipboard entirely (no risk of losing other clipboard formats or racing a paste
- // elsewhere).
- var selectionStart = textBox.SelectionStart;
- var textBefore = textBox.Text[..selectionStart];
- var textAfter = textBox.Text[(selectionStart + textBox.SelectionLength)..];
-
- textBox.Text = textBefore + converted + textAfter;
- textBox.SelectionStart = selectionStart + converted.Length;
- textBox.SelectionLength = 0;
-
- e.Handled = true;
- }
-}
diff --git a/Source/NETworkManager.Controls/PasteBehavior.cs b/Source/NETworkManager.Controls/PasteBehavior.cs
new file mode 100644
index 0000000000..8a550b86e9
--- /dev/null
+++ b/Source/NETworkManager.Controls/PasteBehavior.cs
@@ -0,0 +1,101 @@
+using System.Runtime.InteropServices;
+using System.Windows;
+using System.Windows.Controls;
+using NETworkManager.Utilities;
+
+namespace NETworkManager.Controls;
+
+///
+/// Attached properties that convert text pasted (or dropped) into a TextBox or an editable ComboBox:
+///
+/// -
+/// : multiline text (e.g. a column pasted from Excel)
+/// becomes a semicolon-separated single line. Without this the single-line TextBox
+/// ( is false) drops everything after the first line.
+///
+/// -
+/// : a URL (e.g. "https://borntoberoot.net/docs", copied from a
+/// browser) becomes its host, see .
+///
+///
+/// The data of the paste is replaced in and the default paste inserts it, so
+/// undo, read-only inputs and drag & drop work as usual and the system clipboard is never modified.
+///
+public static class PasteBehavior
+{
+ public static readonly DependencyProperty ConvertMultilineToSemicolonProperty =
+ DependencyProperty.RegisterAttached(
+ "ConvertMultilineToSemicolon",
+ typeof(bool),
+ typeof(PasteBehavior),
+ new PropertyMetadata(false, OnChanged));
+
+ public static void SetConvertMultilineToSemicolon(UIElement element, bool value) =>
+ element.SetValue(ConvertMultilineToSemicolonProperty, value);
+
+ public static bool GetConvertMultilineToSemicolon(UIElement element) =>
+ (bool)element.GetValue(ConvertMultilineToSemicolonProperty);
+
+ public static readonly DependencyProperty ConvertUrlsToHostsProperty =
+ DependencyProperty.RegisterAttached(
+ "ConvertUrlsToHosts",
+ typeof(bool),
+ typeof(PasteBehavior),
+ new PropertyMetadata(false, OnChanged));
+
+ public static void SetConvertUrlsToHosts(UIElement element, bool value) =>
+ element.SetValue(ConvertUrlsToHostsProperty, value);
+
+ public static bool GetConvertUrlsToHosts(UIElement element) =>
+ (bool)element.GetValue(ConvertUrlsToHostsProperty);
+
+ private static void OnChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ // The pasting event bubbles from the editable text box inside the ComboBox template.
+ if (d is not (ComboBox or TextBox))
+ return;
+
+ // Added once, also if both properties are set.
+ DataObject.RemovePastingHandler(d, OnPasting);
+
+ if (GetConvertMultilineToSemicolon((UIElement)d) || GetConvertUrlsToHosts((UIElement)d))
+ DataObject.AddPastingHandler(d, OnPasting);
+ }
+
+ private static void OnPasting(object sender, DataObjectPastingEventArgs e)
+ {
+ if (sender is not UIElement element)
+ return;
+
+ string text;
+
+ try
+ {
+ text = e.SourceDataObject.GetData(DataFormats.UnicodeText, true) as string;
+ }
+ catch (ExternalException)
+ {
+ // Clipboard is locked by another process or its data can't be read (COMException) - default paste.
+ return;
+ }
+
+ if (text == null)
+ return;
+
+ var converted = text;
+
+ // URLs first, line by line (a ";" in a URL belongs to the URL, a line break ends it).
+ if (GetConvertUrlsToHosts(element))
+ converted = InputConverter.ConvertUrlsToHosts(converted);
+
+ if (GetConvertMultilineToSemicolon(element))
+ converted = InputConverter.ConvertMultilineToSemicolon(converted);
+
+ if (converted == text)
+ return;
+
+ // The default paste inserts the converted text instead.
+ e.DataObject = new DataObject(DataFormats.UnicodeText, converted);
+ e.FormatToApply = DataFormats.UnicodeText;
+ }
+}
diff --git a/Source/NETworkManager.Models/Network/Whois.cs b/Source/NETworkManager.Models/Network/Whois.cs
index c728808b2f..75612f46d3 100644
--- a/Source/NETworkManager.Models/Network/Whois.cs
+++ b/Source/NETworkManager.Models/Network/Whois.cs
@@ -1,38 +1,26 @@
-using System.IO;
+using System;
+using System.IO;
+using System.Net;
using System.Linq;
using System.Net.Sockets;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
+using NETworkManager.Models.RDAP;
+using NETworkManager.Utilities;
namespace NETworkManager.Models.Network;
public static class Whois
{
- #region Constructor
-
- static Whois()
- {
- var document = new XmlDocument();
- document.Load(WhoisServerFilePath);
-
- var whoisServerList = (from XmlNode node in document.SelectNodes("/WhoisServers/WhoisServer")!
- where node != null
- select new WhoisServerInfo(node.SelectSingleNode("Server")?.InnerText,
- node.SelectSingleNode("TLD")?.InnerText)).ToList();
-
- WhoisServers = (Lookup)whoisServerList.ToLookup(x => x.Tld);
- }
-
- #endregion
-
#region Variables
private static readonly string WhoisServerFilePath =
Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location)!, "Resources", "WhoisServers.xml");
- private static readonly Lookup WhoisServers;
+ // Loaded on first use, so the methods without the list (e.g. GetQueryDomain) can be used without the file.
+ private static readonly Lazy> WhoisServers = new(LoadWhoisServers);
#endregion
@@ -71,7 +59,36 @@ public static string GetWhoisServer(string domain)
var domainParts = domain.TrimEnd('.').Split('.');
// TLD to upper because the lookup is case sensitive
- return WhoisServers[domainParts[^1].ToUpper()].FirstOrDefault()?.Server;
+ return WhoisServers.Value[domainParts[^1].ToUpper()].FirstOrDefault()?.Server;
+ }
+
+ ///
+ /// Gets the domain to query: a subdomain (e.g. "www.borntoberoot.net", the host of a pasted URL) is queried as
+ /// its registered domain ("borntoberoot.net"), like in RDAP, since Whois servers only know registered domains.
+ ///
+ /// Domain (e.g. "www.bbc.co.uk").
+ /// Registered domain in lowercase (e.g. "bbc.co.uk"), or the domain if it is a public suffix itself.
+ public static string GetQueryDomain(string domain)
+ {
+ var name = domain.Trim().TrimEnd('.').ToLowerInvariant();
+
+ // An IP address (e.g. the inherited host of a profile) is not a domain. Only complete addresses - IPAddress.TryParse
+ // also accepts short forms like "1.2" or "10".
+ if (RegexHelper.IPv4AddressRegex().IsMatch(name) || name.Contains(':') && IPAddress.TryParse(name, out _))
+ return name;
+
+ return PublicSuffixList.GetRegisteredDomain(name) ?? name;
+ }
+
+ private static ILookup LoadWhoisServers()
+ {
+ var document = new XmlDocument();
+ document.Load(WhoisServerFilePath);
+
+ return (from XmlNode node in document.SelectNodes("/WhoisServers/WhoisServer")!
+ where node != null
+ select new WhoisServerInfo(node.SelectSingleNode("Server")?.InnerText,
+ node.SelectSingleNode("TLD")?.InnerText)).ToLookup(x => x.Tld);
}
#endregion
diff --git a/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs b/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs
index bb7923614f..cebdef5b32 100644
--- a/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs
+++ b/Source/NETworkManager.Models/RunCommand/RunCommandDefinition.cs
@@ -35,6 +35,12 @@ public sealed class RunCommandDefinition
///
public bool SupportsTarget { get; init; }
+ ///
+ /// The target is a host (or a list / range of hosts): a URL is converted to its host (e.g. "trace
+ /// https://borntoberoot.net/docs" traces "borntoberoot.net"), like a URL pasted into the host input.
+ ///
+ public bool TargetIsHost { get; init; }
+
///
/// The command accepts a profile ("@name") instead of a target.
///
diff --git a/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs b/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs
index 2e76e90010..6828f3904e 100644
--- a/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs
+++ b/Source/NETworkManager.Models/RunCommand/RunCommandParser.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
+using NETworkManager.Utilities;
namespace NETworkManager.Models.RunCommand;
@@ -203,7 +204,7 @@ public static RunCommandParseResult Parse(string input, IEnumerable
+/// Converts pasted or typed input to the form the inputs accept: multiline text (e.g. a column pasted from Excel) to
+/// a ";" separated list, and URLs (e.g. copied from a browser) to their host. Used by the paste
+/// behavior of the inputs (NETworkManager.Controls) and by the run command. In NETworkManager.Utilities, not in
+/// NETworkManager.Models, since NETworkManager.Models references NETworkManager.Controls.
+///
+public static partial class InputConverter
+{
+ ///
+ /// Converts multiline text to a ";" separated list. Empty lines are removed and every line is trimmed.
+ ///
+ /// Text (e.g. "10.0.0.1\r\n10.0.0.2\r\n").
+ /// Single line (e.g. "10.0.0.1;10.0.0.2"), or the text if it has only one line.
+ public static string ConvertMultilineToSemicolon(string text)
+ {
+ if (string.IsNullOrEmpty(text) || !text.Contains('\n') && !text.Contains('\r'))
+ return text;
+
+ return string.Join(";", text
+ .Replace("\r\n", "\n")
+ .Replace('\r', '\n')
+ .Split('\n', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries));
+ }
+
+ ///
+ /// Gets the host of a URL. A URL contains "://" (any scheme, e.g. "https", "ssh", "rdp") and a host, so a host,
+ /// a subnet ("10.0.0.0/24"), "server:3389", a UNC path or "mailto:" are not URLs.
+ ///
+ /// Entry of a host input (e.g. "https://borntoberoot.net/docs").
+ ///
+ /// Host of the URL: an IPv6 address without brackets and zone ID, an internationalized domain name in its ASCII
+ /// form ("xn--bcher-kva.de"), which is accepted by the validators.
+ ///
+ /// True if the entry is a URL with a host.
+ public static bool TryGetHostFromUrl(string entry, out string host)
+ {
+ host = null;
+
+ var value = entry?.Trim();
+
+ if (string.IsNullOrEmpty(value) || !value.Contains("://") ||
+ !Uri.TryCreate(value, UriKind.Absolute, out var uri))
+ return false;
+
+ // IPv6 without brackets and zone ID, a hostname without the trailing dot of a fully qualified name
+ var idnHost = uri.HostNameType == UriHostNameType.IPv6
+ ? uri.IdnHost.Trim('[', ']').Split('%')[0]
+ : uri.IdnHost.TrimEnd('.');
+
+ if (string.IsNullOrEmpty(idnHost))
+ return false;
+
+ host = idnHost;
+
+ return true;
+ }
+
+ ///
+ /// Converts every URL of a ";" separated (or multiline) input to its host (see ).
+ /// Other entries are kept as they are, line breaks too. A ";" in the path or query of a URL (e.g.
+ /// "https://borntoberoot.net/cart;jsessionid=1") belongs to the URL, unless a new URL follows. A line break ends a
+ /// URL (one entry per line, e.g. pasted from Excel).
+ ///
+ /// Input (e.g. "https://borntoberoot.net/docs;10.0.0.1").
+ /// Input with hosts instead of URLs (e.g. "borntoberoot.net;10.0.0.1").
+ public static string ConvertUrlsToHosts(string input)
+ {
+ if (string.IsNullOrEmpty(input) || !input.Contains("://"))
+ return input;
+
+ // Line by line, the line breaks are kept (separators in the result of the split).
+ return string.Concat(LineBreakRegex().Split(input)
+ .Select(x => x is "\r\n" or "\r" or "\n" ? x : ConvertLine(x)));
+ }
+
+ private static string ConvertLine(string line)
+ {
+ if (!line.Contains("://"))
+ return line;
+
+ var entries = new List();
+
+ foreach (var part in line.Split(';'))
+ {
+ // Part of the path or query of the previous URL (e.g. ";jsessionid=1"): a URL is pasted as one link (e.g.
+ // from a browser), not in a list with hosts.
+ if (entries.Count > 0 && !part.Contains("://") && HasPathOrQuery(entries[^1]))
+ entries[^1] += ";" + part;
+ else
+ entries.Add(part);
+ }
+
+ return string.Join(";", entries.Select(x => TryGetHostFromUrl(x, out var host) ? host : x));
+ }
+
+ ///
+ /// Checks if the entry is a URL with something after the host (path, query or fragment).
+ ///
+ private static bool HasPathOrQuery(string entry)
+ {
+ var index = entry.IndexOf("://", StringComparison.Ordinal);
+
+ return index >= 0 && entry.AsSpan(index + 3).IndexOfAny('/', '?', '#') >= 0;
+ }
+
+ [GeneratedRegex(@"(\r\n|\r|\n)")]
+ private static partial Regex LineBreakRegex();
+}
diff --git a/Source/NETworkManager/RunCommandManager.cs b/Source/NETworkManager/RunCommandManager.cs
index a8cfd834d3..140287cdaf 100644
--- a/Source/NETworkManager/RunCommandManager.cs
+++ b/Source/NETworkManager/RunCommandManager.cs
@@ -8,6 +8,7 @@
using NETworkManager.Models.RunCommand;
using NETworkManager.Profiles;
using NETworkManager.Settings;
+using NETworkManager.Utilities;
using NETworkManager.Validators;
using System;
using System.Collections.Generic;
@@ -45,6 +46,17 @@ public static class RunCommandManager
["port"] = LookupType.Port
};
+ ///
+ /// Applications that take a host as target (also suggested for the host of a URL).
+ ///
+ private static readonly ApplicationName[] HostApplications =
+ [
+ ApplicationName.PingMonitor, ApplicationName.Traceroute, ApplicationName.DNSLookup,
+ ApplicationName.RemoteDesktop, ApplicationName.PuTTY, ApplicationName.PowerShell, ApplicationName.TigerVNC,
+ ApplicationName.IPGeolocation, ApplicationName.Whois, ApplicationName.RDAP, ApplicationName.SNMP,
+ ApplicationName.IPScanner
+ ];
+
///
/// Applications that are suggested for a target typed without a command, in the order they are suggested (if
/// they were not used with this kind of target before).
@@ -52,13 +64,7 @@ public static class RunCommandManager
private static readonly Dictionary TargetApplications = new()
{
// The Port Scanner is not suggested, since it needs ports (or a port profile).
- [RunCommandTargetKind.Host] =
- [
- ApplicationName.PingMonitor, ApplicationName.Traceroute, ApplicationName.DNSLookup,
- ApplicationName.RemoteDesktop, ApplicationName.PuTTY, ApplicationName.PowerShell, ApplicationName.TigerVNC,
- ApplicationName.IPGeolocation, ApplicationName.Whois, ApplicationName.RDAP, ApplicationName.SNMP,
- ApplicationName.IPScanner
- ],
+ [RunCommandTargetKind.Host] = HostApplications,
// Without a domain (e.g. in a company network): no tools for public hosts (Whois, RDAP, IP Geolocation)
[RunCommandTargetKind.Hostname] =
[
@@ -77,6 +83,7 @@ public static class RunCommandManager
[RunCommandTargetKind.OUI] = [ApplicationName.Lookup],
[RunCommandTargetKind.Ports] = [ApplicationName.Lookup],
[RunCommandTargetKind.ASN] = [ApplicationName.RDAP],
+ // Followed by the tools of its host, see GetTargetApplications
[RunCommandTargetKind.URL] = [ApplicationName.WebConsole],
[RunCommandTargetKind.ServiceType] = [ApplicationName.MDNSDiscovery]
};
@@ -190,10 +197,7 @@ public static IEnumerable GetProfiles(RunCommandDefinition command)
{
kind ??= RunCommandTarget.GetKind(target);
- if (!TargetApplications.TryGetValue(kind.Value, out var applications))
- yield break;
-
- foreach (var application in applications)
+ foreach (var application in GetTargetApplications(target, kind.Value))
{
var command = commands.FirstOrDefault(x => x.Application == application);
@@ -213,6 +217,22 @@ public static IEnumerable GetProfiles(RunCommandDefinition command)
}
}
+ ///
+ /// Gets the applications that are suggested for a target. A URL: the Web Console, then the applications of its
+ /// host (e.g. "trace https://borntoberoot.net/docs", see ), so a
+ /// host without a domain gets no tools for public hosts.
+ ///
+ private static IEnumerable GetTargetApplications(string target, RunCommandTargetKind kind)
+ {
+ var applications = TargetApplications.GetValueOrDefault(kind, []);
+
+ if (kind == RunCommandTargetKind.URL && InputConverter.TryGetHostFromUrl(target, out var host) &&
+ TargetApplications.TryGetValue(RunCommandTarget.GetKind(host), out var hostApplications))
+ return applications.Concat(hostApplications);
+
+ return applications;
+ }
+
///
/// Checks if the request opens a dialog, so the run command dialog must be closed: the settings or the connect
/// dialog of a remote tool. Messages of the applications (e.g. an error or a confirmation) close the run command
@@ -605,6 +625,9 @@ private static RunCommandDefinition Create(ApplicationName application, string[]
Command = application.ToString().ToLowerInvariant(),
Aliases = aliases,
SupportsTarget = supportsTarget,
+ // The target of the host tools (also the Port Scanner, which is not suggested for a host)
+ TargetIsHost = supportsTarget &&
+ (HostApplications.Contains(application) || application == ApplicationName.PortScanner),
SupportsProfile = profile,
Argument = argument,
Types = types ?? [],
diff --git a/Source/NETworkManager/ViewModels/WhoisViewModel.cs b/Source/NETworkManager/ViewModels/WhoisViewModel.cs
index e23610ef92..fc3693b46f 100644
--- a/Source/NETworkManager/ViewModels/WhoisViewModel.cs
+++ b/Source/NETworkManager/ViewModels/WhoisViewModel.cs
@@ -195,17 +195,19 @@ private async Task Query()
try
{
- var whoisServer = Whois.GetWhoisServer(Domain);
+ var domain = Whois.GetQueryDomain(Domain);
+
+ var whoisServer = Whois.GetWhoisServer(domain);
if (string.IsNullOrEmpty(whoisServer))
{
- StatusMessage = string.Format(Strings.WhoisServerNotFoundForTheDomain, Domain);
+ StatusMessage = string.Format(Strings.WhoisServerNotFoundForTheDomain, domain);
StatusMessageLevel = StatusLevel.Error;
IsStatusMessageDisplayed = true;
}
else
{
- Result = await Whois.QueryAsync(Domain, whoisServer);
+ Result = await Whois.QueryAsync(domain, whoisServer);
IsResultVisible = true;
ListHelper.Modify(SettingsManager.Current.Whois_DomainHistory, Domain,
diff --git a/Source/NETworkManager/Views/DNSLookupView.xaml b/Source/NETworkManager/Views/DNSLookupView.xaml
index 752361e912..333aeea5f0 100644
--- a/Source/NETworkManager/Views/DNSLookupView.xaml
+++ b/Source/NETworkManager/Views/DNSLookupView.xaml
@@ -55,6 +55,8 @@
Style="{DynamicResource DefaultTextBlock}"
VerticalAlignment="Center" />
diff --git a/Source/NETworkManager/Views/GroupChildWindow.xaml b/Source/NETworkManager/Views/GroupChildWindow.xaml
index ad2f96c6a0..1f1d286301 100644
--- a/Source/NETworkManager/Views/GroupChildWindow.xaml
+++ b/Source/NETworkManager/Views/GroupChildWindow.xaml
@@ -1057,6 +1057,7 @@
Text="{x:Static localization:Strings.ServerName}" Margin="24,0,0,0"
VerticalAlignment="Center" Style="{StaticResource DisabledTextBlock}" />
diff --git a/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml b/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml
index b08e7a005b..e685b3c41b 100644
--- a/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml
+++ b/Source/NETworkManager/Views/HostsFileEditorEntryChildWindow.xaml
@@ -1,6 +1,7 @@
diff --git a/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml b/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml
index d32a2cc362..1b5336597d 100644
--- a/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml
+++ b/Source/NETworkManager/Views/LatencyTargetChildWindow.xaml
@@ -1,6 +1,7 @@
diff --git a/Source/NETworkManager/Views/MDNSDiscoveryView.xaml b/Source/NETworkManager/Views/MDNSDiscoveryView.xaml
index c5cb979726..ecf0ef7fd0 100644
--- a/Source/NETworkManager/Views/MDNSDiscoveryView.xaml
+++ b/Source/NETworkManager/Views/MDNSDiscoveryView.xaml
@@ -184,7 +184,7 @@
TextSearch.TextPath="Text"
ItemTemplate="{StaticResource InputSuggestionTemplate}"
controls:ComboBoxListCompletionBehavior.Items="{Binding ServiceTypeProfileNames}"
- controls:ComboBoxPasteBehavior.ConvertMultilineToSemicolon="True"
+ controls:PasteBehavior.ConvertMultilineToSemicolon="True"
mahappsControls:TextBoxHelper.Watermark="{x:Static localization:StaticStrings.ExampleMDNSServiceTypeInput}"
FontFamily="{StaticResource Fonts.Family.Mono}"
IsReadOnly="{Binding IsRunning}"
diff --git a/Source/NETworkManager/Views/PingMonitorHostView.xaml b/Source/NETworkManager/Views/PingMonitorHostView.xaml
index b14e848c47..6de9bdaf5c 100644
--- a/Source/NETworkManager/Views/PingMonitorHostView.xaml
+++ b/Source/NETworkManager/Views/PingMonitorHostView.xaml
@@ -200,11 +200,12 @@
Style="{DynamicResource ResourceKey=DefaultTextBlock}"
VerticalAlignment="Center" />
diff --git a/Source/NETworkManager/Views/PortScannerView.xaml b/Source/NETworkManager/Views/PortScannerView.xaml
index 0323d8ca2c..9c18d1715c 100644
--- a/Source/NETworkManager/Views/PortScannerView.xaml
+++ b/Source/NETworkManager/Views/PortScannerView.xaml
@@ -64,11 +64,12 @@
Style="{StaticResource DefaultTextBlock}"
VerticalAlignment="Center" />
@@ -91,7 +92,7 @@
controls:ComboBoxListCompletionBehavior.Items="{Binding PortProfileNames}"
mah:TextBoxHelper.Watermark="{x:Static localization:StaticStrings.ExamplePortScanRange}" FontFamily="{StaticResource Fonts.Family.Mono}"
IsReadOnly="{Binding Path=IsRunning}"
- controls:ComboBoxPasteBehavior.ConvertMultilineToSemicolon="True"
+ controls:PasteBehavior.ConvertMultilineToSemicolon="True"
Style="{StaticResource HistoryComboBox}">
diff --git a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml
index 87c3e8afde..fb17d1eab4 100644
--- a/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml
+++ b/Source/NETworkManager/Views/PowerShellConnectChildWindow.xaml
@@ -1,6 +1,7 @@
@@ -1700,6 +1701,8 @@
IsOn="{Binding IPScanner_InheritHost}" />
@@ -1779,6 +1782,8 @@
IsOn="{Binding PortScanner_InheritHost}" />
@@ -1876,6 +1881,8 @@
IsOn="{Binding PingMonitor_InheritHost}" />
@@ -1975,6 +1982,7 @@
IsOn="{Binding Traceroute_InheritHost}" />
@@ -2044,6 +2052,7 @@
IsOn="{Binding DNSLookup_InheritHost}" />
@@ -2226,6 +2235,7 @@
IsOn="{Binding RemoteDesktop_InheritHost}" />
@@ -2412,6 +2422,7 @@
Text="{x:Static localization:Strings.ServerName}" Margin="24,0,0,0"
VerticalAlignment="Center" Style="{StaticResource DisabledTextBlock}" />
@@ -2898,6 +2909,7 @@
IsEnabled="{Binding PowerShell_EnableRemoteConsole}" />