From cbb33c6cac10f11a3784c6314d24247189e30e31 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 18 Jun 2024 08:01:04 +0200 Subject: [PATCH] Login and register hover "Ich habe bereits ein Account" hover Nutzungs- und Datenschutzbedingungen hover (NOCH NICHT FERTIG) --- bibtalk/bib-talk/Login.xaml | 12 +++++++-- bibtalk/bib-talk/RegisterWindow.xaml | 35 ++++++++++++++++--------- bibtalk/bib-talk/RegisterWindow.xaml.cs | 11 ++++++-- 3 files changed, 42 insertions(+), 16 deletions(-) diff --git a/bibtalk/bib-talk/Login.xaml b/bibtalk/bib-talk/Login.xaml index 9629d11..547a489 100644 --- a/bibtalk/bib-talk/Login.xaml +++ b/bibtalk/bib-talk/Login.xaml @@ -49,6 +49,14 @@ + @@ -121,8 +129,8 @@ Foreground="#FF6332A0" FontSize="12" Width="66" - Margin="8,5,0,0"/> - + Margin="8,5,0,0" + Style="{StaticResource HoverUnderlineTextBlockStyle}"/> diff --git a/bibtalk/bib-talk/RegisterWindow.xaml b/bibtalk/bib-talk/RegisterWindow.xaml index edb468f..4d5300e 100644 --- a/bibtalk/bib-talk/RegisterWindow.xaml +++ b/bibtalk/bib-talk/RegisterWindow.xaml @@ -87,6 +87,17 @@ + + @@ -196,25 +207,25 @@ - - - - - - - - + + + + + + + + - - + + diff --git a/bibtalk/bib-talk/RegisterWindow.xaml.cs b/bibtalk/bib-talk/RegisterWindow.xaml.cs index 9f8e6cf..1cff4c6 100644 --- a/bibtalk/bib-talk/RegisterWindow.xaml.cs +++ b/bibtalk/bib-talk/RegisterWindow.xaml.cs @@ -1,6 +1,7 @@ using Newtonsoft.Json; using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Net.Http; using System.Text; @@ -25,7 +26,13 @@ namespace bib_talk InitializeComponent(); } - private void CloseButton_Click(object sender, RoutedEventArgs e) + private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) + { + Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri) { UseShellExecute = true }); + e.Handled = true; + } + + private void CloseButton_Click(object sender, RoutedEventArgs e) { this.Close(); } @@ -142,5 +149,5 @@ namespace bib_talk } } } - } + } }