2025-01-20 14:05:21 -06:00

49 lines
1.9 KiB
XML

<UserControl x:Class="Breath_of_the_Wild_Multiplayer.MVVM.View.ErrorMessageView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Breath_of_the_Wild_Multiplayer.MVVM.View"
xmlns:viewModel="clr-namespace:Breath_of_the_Wild_Multiplayer.MVVM.ViewModel"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.DataContext>
<viewModel:ErrorMessageModel/>
</UserControl.DataContext>
<Grid>
<Button Command="{Binding AcceptClick}">
<Button.Style>
<Style TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="Transparent"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Button.Style>
</Button>
<StackPanel VerticalAlignment="Center">
<Label Grid.Row="1"
Content="{Binding Message}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Roboto"
FontSize="26"
FontStyle="Italic"
Foreground="White"/>
<Button
Width="135"
Content="Accept"
Grid.Row="3"
Margin="10"
Style="{StaticResource ConnectToServerButton}"
Command="{Binding AcceptClick}"/>
</StackPanel>
</Grid>
</UserControl>