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

50 lines
2.1 KiB
XML

<UserControl x:Class="Breath_of_the_Wild_Multiplayer.MVVM.View.ChangeNameView"
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:sys="clr-namespace:System;assembly=mscorlib"
xmlns:properties="clr-namespace:Breath_of_the_Wild_Multiplayer.Properties"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<StackPanel VerticalAlignment="Center">
<Label Content="Edit player name"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Roboto"
FontSize="26"
FontStyle="Italic"
Foreground="White"/>
<Label Content="You can always change your player name in Settings tab"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="Roboto"
FontSize="14"
FontStyle="Italic"
Foreground="White"
Margin="-10"/>
<TextBox
Text="{Binding Source={x:Static properties:Settings.Default}, Path=playerName}"
Style="{StaticResource modifiableTextBox}"
BorderBrush="#FFC4C6CB"
TextChanged="TextBox_TextChanged"
MaxLength="18"
Margin="300, 0, 300, 0">
<TextBox.Tag>
<sys:String>Player Name</sys:String>
</TextBox.Tag>
</TextBox>
<Button
Width="135"
Content="Accept"
Grid.Row="3"
Margin="10"
Style="{StaticResource ConnectToServerButton}"
Command="{Binding AcceptClick}"/>
</StackPanel>
</UserControl>