0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 09:50:43 -05:00
launcher/project/SPT.Launcher/Views/Dialogs/ConfirmationDialogView.axaml

37 lines
1.7 KiB
Plaintext
Raw Permalink Normal View History

2023-03-03 19:25:33 +00:00
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2024-07-06 11:48:16 -04:00
xmlns:dialogHost="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
2023-03-03 19:25:33 +00:00
xmlns:s="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
2024-05-21 20:15:19 +01:00
x:Class="SPT.Launcher.Views.Dialogs.ConfirmationDialogView"
2023-03-03 19:25:33 +00:00
MinWidth="300"
MinHeight="100"
Background="{DynamicResource BackgroundBrush}"
2023-03-03 19:25:33 +00:00
>
<Grid RowDefinitions="*,AUTO" ColumnDefinitions="*,AUTO" Margin="10">
<TextBlock Text="{Binding Question}" Grid.ColumnSpan="2" FontSize="15"
/>
<StackPanel Grid.Row="1" Grid.Column="1"
Orientation="Horizontal" Spacing="10">
<Button Content="{Binding ConfirmButtonText}"
Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=dialogHost:DialogHost}, Path=CloseDialogCommand}"
2024-07-08 18:41:22 -04:00
Classes="acc"
2024-06-02 14:46:53 -04:00
IsEnabled="{Binding AllowConfirm}"
2023-03-03 19:25:33 +00:00
>
<Button.CommandParameter>
<s:Boolean>True</s:Boolean>
</Button.CommandParameter>
</Button>
<Button Content="{Binding DenyButtonText}"
Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=dialogHost:DialogHost}, Path=CloseDialogCommand}"
>
<Button.CommandParameter>
<s:Boolean>False</s:Boolean>
</Button.CommandParameter>
</Button>
</StackPanel>
</Grid>
</UserControl>