Fix more hyperlink issues

This commit is contained in:
Gustave Monce
2021-08-12 08:37:20 +02:00
parent 7f3c8b1777
commit d8fd0aa516
6 changed files with 36 additions and 7 deletions
+4 -1
View File
@@ -39,7 +39,10 @@ namespace WPinternals
{
if (args.Source is Hyperlink link)
{
Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
+5 -1
View File
@@ -18,6 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
@@ -54,7 +55,10 @@ namespace WPinternals
}
else
{
System.Diagnostics.Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}
+5 -1
View File
@@ -18,6 +18,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
@@ -48,7 +49,10 @@ namespace WPinternals
}
else
{
System.Diagnostics.Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}
+4 -1
View File
@@ -53,7 +53,10 @@ namespace WPinternals
}
else
{
Process.Start(link.NavigateUri.AbsoluteUri);
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}
@@ -57,7 +57,10 @@ namespace WPinternals
}
else
{
Process.Start(link.NavigateUri.ToString());
Process process = new();
process.StartInfo.UseShellExecute = true;
process.StartInfo.FileName = link.NavigateUri.AbsoluteUri;
process.Start();
}
}
}