1
0

23 lines
1.2 KiB
XML

<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"
xmlns:vm="clr-namespace:Flawless.Client.ViewModels"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="400"
x:Class="Flawless.Client.Views.ServerSetupView"
x:DataType="vm:ServerSetupViewModel">
<Design.DataContext>
<!-- This only sets the DataContext for the previewer in an IDE,
to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
<vm:ServerSetupViewModel/>
</Design.DataContext>
<StackPanel Spacing="10" HorizontalAlignment="Stretch" VerticalAlignment="Center">
<Image Source="/Assets/avalonia-logo.ico" Margin="20 20" MaxWidth="150"/>
<TextBox Watermark="Host" Text="{Binding Host, Mode=TwoWay}"/>
<Button Content="Connect" Command="{Binding SetHostCommand}"/>
<Label Content="{Binding Issue}" Foreground="Red"/>
</StackPanel>
</UserControl>