Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit 04678f7

Browse files
committed
Began adding flyouts to messages
1 parent 30216c4 commit 04678f7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Quarrel/DataTemplates/MessageTemplates.xaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414

1515
<DataTemplate x:Key="DefaultMessageTemplate" x:DataType="bindablemessages:BindableMessage">
1616
<!--Grid must be wrapped in a user control to enable the VisualStateManager-->
17-
<UserControl>
18-
<Grid x:Name="RootGrid" Padding="2,12,2,4"
17+
<UserControl HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
18+
VerticalAlignment="Stretch" VerticalContentAlignment="Stretch">
19+
<Grid x:Name="RootGrid" Padding="2,12,2,4" Background="Transparent"
1920
Opacity="{x:Bind mconvert:IsDeletedToOpacityConverter.Convert(IsDeleted), Mode=OneWay}">
2021
<VisualStateManager.VisualStateGroups>
2122
<VisualStateGroup>
@@ -42,6 +43,12 @@
4243
</VisualStateGroup>
4344
</VisualStateManager.VisualStateGroups>
4445

46+
<Grid.ContextFlyout>
47+
<MenuFlyout>
48+
<MenuFlyoutItem Text="Delete" Icon="Delete" Foreground="{StaticResource DiscordRedBrush}"/>
49+
</MenuFlyout>
50+
</Grid.ContextFlyout>
51+
4552
<Grid.ColumnDefinitions>
4653
<ColumnDefinition Width="64"/>
4754
<ColumnDefinition Width="*"/>

0 commit comments

Comments
 (0)