Drei Punkte Popup removed + unnötiger Methoden aufruf removed

This commit is contained in:
Erik 2024-08-29 10:23:12 +02:00
parent f9d5053029
commit 8b71f84284
2 changed files with 6 additions and 63 deletions

View File

@ -85,25 +85,11 @@
VerticalAlignment="Top"/> VerticalAlignment="Top"/>
</Button> </Button>
<Grid Margin="298,17,0,176" Grid.ColumnSpan="4"> <Grid Margin="298,17,0,176" Grid.ColumnSpan="4">
<Popup x:Name="popup" Placement="Center" IsOpen="False" LostFocus="Popup_LostFocus">
<StackPanel Background="White" Orientation="Vertical" Width="200" Height="150" Margin="10">
<Button Content="Button 1" Click="Button1_Click" Margin="5"/>
<Button Content="Button 2" Click="Button2_Click" Margin="5"/>
<Button Content="Button 3" Click="Button3_Click" Margin="5"/>
</StackPanel>
</Popup>
<Rectangle Stroke="#FF6332A0" Fill="#FF6332A0" Width="682"/> <Rectangle Stroke="#FF6332A0" Fill="#FF6332A0" Width="682"/>
<TextBlock Text="Global Chat" Margin="108,25,206,21" FontSize="40" Foreground="White" /> <TextBlock Text="Global Chat" Margin="108,25,206,21" FontSize="40" Foreground="White" />
<Image Source="/UI/logo - Copy.png" Stretch="Fill" Margin="-55,-118,499,0"> <Image Source="/UI/logo - Copy.png" Stretch="Fill" Margin="-55,-118,499,0">
</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" Click="ChatFenster_Click"/>
</Grid> </Grid>
<Grid Margin="76,17,339,176"> <Grid Margin="76,17,339,176">
@ -115,7 +101,7 @@
Margin="10,61,10,10" Margin="10,61,10,10"
Background="#FF6332A0" Background="#FF6332A0"
Foreground="White" Foreground="White"
SelectionBrush="#FF6332A0" KeyDown="messageBox_KeyDown" RenderTransformOrigin="0.5,0.5"> SelectionBrush="#FF6332A0" RenderTransformOrigin="0.5,0.5">
<TextBox.RenderTransform> <TextBox.RenderTransform>
<TransformGroup> <TransformGroup>
<ScaleTransform ScaleX="-1" ScaleY="-1"/> <ScaleTransform ScaleX="-1" ScaleY="-1"/>

View File

@ -76,49 +76,6 @@ namespace bib_talk
mwManager.SendMessage(); mwManager.SendMessage();
} }
// temporäre Methoden, löschen wenn karl nichts gemacht hat
#region Temporär, Karl
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;
}
#endregion
// Methode zum Profilbilder hochladen // Methode zum Profilbilder hochladen
private async void uploadpbclick(object sender, RoutedEventArgs e) private async void uploadpbclick(object sender, RoutedEventArgs e)
{ {