mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Version 4.17.0: Added support for WMTS
This commit is contained in:
parent
f1ea075047
commit
f3d0dd0f74
2 changed files with 26 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ using Windows.UI.Xaml;
|
|||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Documents;
|
||||
#else
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
|
|
@ -45,7 +46,18 @@ namespace MapControl
|
|||
link.Inlines.Add(new Run { Text = match.Groups[1].Value });
|
||||
#if !WINDOWS_UWP
|
||||
link.ToolTip = uri.ToString();
|
||||
link.RequestNavigate += (s, e) => System.Diagnostics.Process.Start(e.Uri.ToString());
|
||||
|
||||
link.RequestNavigate += (s, e) =>
|
||||
{
|
||||
try
|
||||
{
|
||||
Process.Start(e.Uri.ToString());
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.WriteLine("{0}: {1}", e.Uri, ex);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
inlines.Add(link);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue