Redesign 1
This commit is contained in:
@@ -61,21 +61,34 @@ namespace FoxTube
|
||||
{
|
||||
if (isWWW.IsMatch(item))
|
||||
{
|
||||
Debug.WriteLine(item);
|
||||
Hyperlink link = new Hyperlink { NavigateUri = new Uri(item), Foreground = new SolidColorBrush(Colors.Red) };
|
||||
link.Inlines.Add(new Run { Text = item });
|
||||
block.Inlines.Add(link);
|
||||
try
|
||||
{
|
||||
Hyperlink link = new Hyperlink { NavigateUri = new Uri(item), Foreground = new SolidColorBrush(Colors.Red) };
|
||||
link.Inlines.Add(new Run { Text = item });
|
||||
block.Inlines.Add(link);
|
||||
}
|
||||
catch
|
||||
{
|
||||
block.Inlines.Add(new Run { Text = item });
|
||||
}
|
||||
}
|
||||
else if (isEmail.IsMatch(item))
|
||||
{
|
||||
Debug.WriteLine(item);
|
||||
Hyperlink link = new Hyperlink { NavigateUri = new Uri($"mailto:{item}"), Foreground = new SolidColorBrush(Colors.Red) };
|
||||
link.Inlines.Add(new Run { Text = item });
|
||||
block.Inlines.Add(link);
|
||||
try
|
||||
{
|
||||
Hyperlink link = new Hyperlink { NavigateUri = new Uri($"mailto:{item}"), Foreground = new SolidColorBrush(Colors.Red) };
|
||||
link.Inlines.Add(new Run { Text = item });
|
||||
block.Inlines.Add(link);
|
||||
}
|
||||
catch
|
||||
{
|
||||
block.Inlines.Add(new Run { Text = item });
|
||||
}
|
||||
}
|
||||
else if (item == "s")
|
||||
continue;
|
||||
else block.Inlines.Add(new Run { Text = item });
|
||||
else
|
||||
block.Inlines.Add(new Run { Text = item });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user