This commit is contained in:
Exudonze 2024-06-18 12:58:00 +02:00
parent 313bb6d990
commit dd92942809
2 changed files with 39 additions and 2 deletions

View File

@ -104,7 +104,7 @@
<EllipseGeometry Center="40,40" RadiusX="40" RadiusY="40"/> <EllipseGeometry Center="40,40" RadiusX="40" RadiusY="40"/>
</Image.Clip> </Image.Clip>
</Image> </Image>
<Button Content="⋮" HorizontalAlignment="Left" Margin="638,8,0,0" VerticalAlignment="Top" Width="19" Height="70" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="White" FontSize="58"/> <Button Content="⋮" HorizontalAlignment="Left" Margin="638,8,0,0" VerticalAlignment="Top" Width="19" Height="70" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="White" FontSize="58" Click="ChatFenster_Click"/>
</Grid> </Grid>
<Grid Margin="76,17,454,176"> <Grid Margin="76,17,454,176">

View File

@ -189,9 +189,46 @@ namespace bib_talk
public string IsOnline { get; set; } 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;
}
} }
} }
}