You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.3 KiB
65 lines
2.3 KiB
<UserControl
|
|
x:Class="DiscordChatExporter.Gui.Views.Dialogs.MessageBoxView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:dialogs="clr-namespace:DiscordChatExporter.Gui.ViewModels.Dialogs"
|
|
xmlns:system="clr-namespace:System;assembly=System.Runtime"
|
|
Width="500">
|
|
<Design.DataContext>
|
|
<dialogs:MessageBoxViewModel />
|
|
</Design.DataContext>
|
|
|
|
<Grid RowDefinitions="Auto,*,Auto">
|
|
<!-- Title -->
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Margin="16"
|
|
FontSize="19"
|
|
FontWeight="Light"
|
|
Text="{Binding Title}"
|
|
TextTrimming="CharacterEllipsis"
|
|
ToolTip.Tip="{Binding Title}" />
|
|
|
|
<!-- Message -->
|
|
<Border
|
|
Grid.Row="1"
|
|
Padding="0,8"
|
|
BorderBrush="{DynamicResource MaterialDividerBrush}"
|
|
BorderThickness="0,1">
|
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
|
<TextBlock
|
|
Margin="16,8"
|
|
Text="{Binding Message}"
|
|
TextWrapping="Wrap" />
|
|
</ScrollViewer>
|
|
</Border>
|
|
|
|
<UniformGrid
|
|
Grid.Row="2"
|
|
Margin="16"
|
|
HorizontalAlignment="Right"
|
|
Columns="{Binding ButtonsCount}">
|
|
<!-- OK -->
|
|
<Button
|
|
Command="{Binding CloseCommand}"
|
|
Content="{Binding DefaultButtonText}"
|
|
IsDefault="True"
|
|
IsVisible="{Binding IsDefaultButtonVisible}"
|
|
Theme="{DynamicResource MaterialOutlineButton}">
|
|
<Button.CommandParameter>
|
|
<system:Boolean>True</system:Boolean>
|
|
</Button.CommandParameter>
|
|
</Button>
|
|
|
|
<!-- Cancel -->
|
|
<Button
|
|
Margin="16,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Command="{Binding CloseCommand}"
|
|
Content="{Binding CancelButtonText}"
|
|
IsCancel="True"
|
|
IsVisible="{Binding IsCancelButtonVisible}"
|
|
Theme="{DynamicResource MaterialOutlineButton}" />
|
|
</UniformGrid>
|
|
</Grid>
|
|
</UserControl> |