Chat settings abgeändert

+ Region hinzugefügt
This commit is contained in:
Erik 2024-08-30 10:08:18 +02:00
parent fd2ebc5aaa
commit 4edc2f2188
2 changed files with 12 additions and 14 deletions

View File

@ -93,9 +93,9 @@
<Button x:Name="ChatSettings" Content="⚙️" Click="MenuButton_Click" HorizontalAlignment="Left" Margin="634,2,0,0" VerticalAlignment="Top" Height="37" Width="26" Background="Transparent" BorderBrush="Transparent">
<Button.ContextMenu>
<ContextMenu x:Name="contextMenu" IsOpen="False">
<MenuItem x:Name="blockButton" Header="Blockieren" Click="BlockButton_Click"/>
<MenuItem x:Name="deleteChatButton" Header="Chat löschen" Click="DeleteChatButton_Click"/>
<MenuItem x:Name="removeFriendButton" Header="Freund entfernen" Click="RemoveFriendButton_Click"/>
<MenuItem x:Name="muteChatButton" Header="Chat muten" Click="muteChatButton_Click"/>
<MenuItem x:Name="clearChatButton" Header="Clear chat" Click="clearChatButton_Click"/>
<MenuItem x:Name="helpButton" Header="Help" Click="helpButton_Click"/>
</ContextMenu>
</Button.ContextMenu>
</Button>

View File

@ -88,6 +88,8 @@ namespace bib_talk
await mwManager.UploadProfileImage(filePath);
}
}
#region Ohne Funktion
// Chat Settings Logik
private void MenuButton_Click(object sender, RoutedEventArgs e)
{
@ -95,24 +97,20 @@ namespace bib_talk
contextMenu.IsOpen = true;
}
private void BlockButton_Click(object sender, RoutedEventArgs e)
private void muteChatButton_Click(object sender, RoutedEventArgs e)
{
// Logik zum Blockieren eines Benutzers
}
private void DeleteChatButton_Click(object sender, RoutedEventArgs e)
private void clearChatButton_Click(object sender, RoutedEventArgs e)
{
// Logik zum Löschen eines Chats
}
private void RemoveFriendButton_Click(object sender, RoutedEventArgs e)
private void helpButton_Click(object sender, RoutedEventArgs e)
{
// Logik zum Entfernen eines Freundes
}
private void SendButton_Click(object sender, RoutedEventArgs e)
{
// Logik zum Senden einer Nachricht
}
#endregion
}
}