This commit is contained in:
2023-01-28 14:34:29 +01:00
parent b3755f4ceb
commit 05e4baef7e

View File

@@ -606,9 +606,11 @@
</Border> </Border>
<Border <Border
Background="{DynamicResource BarelyTransparentBackgroundColor}"
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
IsVisible="{Binding DialogService.LastMessageBox^, Converter={x:Static ObjectConverters.IsNotNull}, FallbackValue=False}"> DataContext="{Binding DialogService.LastMessageBox^}"
IsVisible="{Binding Converter={x:Static ObjectConverters.IsNotNull}, FallbackValue=False}">
<Border <Border
Background="{DynamicResource ContainerBackgroundBrush}" Background="{DynamicResource ContainerBackgroundBrush}"
HorizontalAlignment="Center" HorizontalAlignment="Center"
@@ -616,7 +618,7 @@
Padding="20"> Padding="20">
<Grid RowDefinitions="Auto,Auto"> <Grid RowDefinitions="Auto,Auto">
<TextBlock Text="{Binding DialogService.LastMessageBox^.Text}"/> <TextBlock Text="{Binding Text}" />
<StackPanel <StackPanel
Grid.Row="1" Grid.Row="1"
Orientation="Horizontal" Orientation="Horizontal"
@@ -624,13 +626,13 @@
<Button <Button
HorizontalContentAlignment="Center" HorizontalContentAlignment="Center"
Width="80" Width="80"
Command="{Binding DialogService.LastMessageBox^.OkCommand}" Command="{Binding OkCommand}"
Content="Yes" /> Content="Yes" />
<Button <Button
HorizontalContentAlignment="Center" HorizontalContentAlignment="Center"
Width="80" Width="80"
Margin="10,0,0,0" Margin="10,0,0,0"
Command="{Binding DialogService.LastMessageBox^.CancelCommand}" Command="{Binding CancelCommand}"
Content="No" /> Content="No" />
</StackPanel> </StackPanel>
</Grid> </Grid>