Links mit https gehen wieder
This commit is contained in:
@@ -191,6 +191,11 @@ namespace ChatController.ChatKlassen
|
||||
{
|
||||
return new Uri("http://" + UserMessage);
|
||||
}
|
||||
|
||||
if(UserMessage.Contains("https"))
|
||||
{
|
||||
return new Uri(UserMessage);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
@@ -299,10 +299,10 @@
|
||||
</StackPanel>
|
||||
<StackPanel DockPanel.Dock="Bottom" Visibility="{Binding HyperlinkVisibility}" >
|
||||
<TextBlock>
|
||||
<Hyperlink NavigateUri="{Binding UserMessageAsUri}" RequestNavigate="Hyperlink_OnRequestNavigate" >
|
||||
<TextBlock VerticalAlignment="Center" Text="{Binding UserMessage}" MinWidth="0" MaxWidth="{Binding MessageMaxWidth}" TextWrapping="Wrap" FontSize="14"/>
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
<Hyperlink NavigateUri="{Binding UserMessageAsUri}" RequestNavigate="Hyperlink_OnRequestNavigate" >
|
||||
<TextBlock VerticalAlignment="Center" Text="{Binding UserMessage}" MinWidth="0" MaxWidth="{Binding MessageMaxWidth}" TextWrapping="Wrap" FontSize="14"/>
|
||||
</Hyperlink>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<DockPanel DockPanel.Dock="Bottom" Visibility="{Binding PictureVisibility}" >
|
||||
<StackPanel Orientation="Vertical">
|
||||
|
||||
@@ -947,7 +947,8 @@ namespace ChatController
|
||||
|
||||
private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
|
||||
{
|
||||
Process.Start(e.Uri.ToString());
|
||||
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void ButtonReloadGruppen_OnClick(object sender, RoutedEventArgs e)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user