diff --git a/bibtalk/bib-talk/MainWindow.xaml b/bibtalk/bib-talk/MainWindow.xaml
index c4bade9..bc69b01 100644
--- a/bibtalk/bib-talk/MainWindow.xaml
+++ b/bibtalk/bib-talk/MainWindow.xaml
@@ -104,7 +104,7 @@
-
+
diff --git a/bibtalk/bib-talk/MainWindow.xaml.cs b/bibtalk/bib-talk/MainWindow.xaml.cs
index c12d456..a438bbb 100644
--- a/bibtalk/bib-talk/MainWindow.xaml.cs
+++ b/bibtalk/bib-talk/MainWindow.xaml.cs
@@ -189,9 +189,46 @@ namespace bib_talk
public string IsOnline { get; set; }
}
- private void onlineUsersListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ private void ChatFenster_Click(object sender, RoutedEventArgs e)
{
+ if (popup.IsOpen = true)
+ {
+ popup.Focus();
+ }
+ else
+ {
+ popup.IsOpen = true;
+ }
}
+ private void Button1_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Button 1 wurde geklickt!");
+ ClosePopup();
+ }
+
+ private void Button2_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Button 2 wurde geklickt!");
+ ClosePopup();
+ }
+
+ private void Button3_Click(object sender, RoutedEventArgs e)
+ {
+ MessageBox.Show("Button 3 wurde geklickt!");
+ ClosePopup();
+ }
+
+ private void Popup_LostFocus(object sender, RoutedEventArgs e)
+ {
+
+ ClosePopup();
+ }
+
+ private void ClosePopup()
+ {
+ popup.IsOpen = false;
+ }
+
}
}