Drei Punkte Popup removed + unnötiger Methoden aufruf removed
This commit is contained in:
parent
f9d5053029
commit
8b71f84284
@ -85,25 +85,11 @@
|
||||
VerticalAlignment="Top"/>
|
||||
</Button>
|
||||
<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"/>
|
||||
<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>
|
||||
<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 Margin="76,17,339,176">
|
||||
|
||||
@ -115,7 +101,7 @@
|
||||
Margin="10,61,10,10"
|
||||
Background="#FF6332A0"
|
||||
Foreground="White"
|
||||
SelectionBrush="#FF6332A0" KeyDown="messageBox_KeyDown" RenderTransformOrigin="0.5,0.5">
|
||||
SelectionBrush="#FF6332A0" RenderTransformOrigin="0.5,0.5">
|
||||
<TextBox.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform ScaleX="-1" ScaleY="-1"/>
|
||||
|
@ -76,49 +76,6 @@ namespace bib_talk
|
||||
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
|
||||
private async void uploadpbclick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user