71 lines
2.5 KiB
XML
71 lines
2.5 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:vm="using:MicrosocksGUI.ViewModels"
|
||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
mc:Ignorable="d" d:DesignWidth="250" d:DesignHeight="330"
|
||
x:Class="MicrosocksGUI.Views.MainWindow"
|
||
x:DataType="vm:MainWindowViewModel"
|
||
Icon="/Assets/avalonia-logo.ico"
|
||
Title=""
|
||
CanMaximize="False"
|
||
CanResize="False"
|
||
Width="250"
|
||
Height="330"
|
||
>
|
||
|
||
<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:MainWindowViewModel/>
|
||
</Design.DataContext>
|
||
|
||
<StackPanel Orientation="Vertical" Margin="10" Spacing="10" >
|
||
<TextBlock Text="Microsocks GUI" FontSize="30"/>
|
||
<TextBlock Text="Статус:" FontSize="20"/>
|
||
<Grid ColumnDefinitions="*, *" ColumnSpacing="5">
|
||
<ToggleButton
|
||
Grid.Column="0"
|
||
HorizontalAlignment="Stretch"
|
||
HorizontalContentAlignment="Center">
|
||
Работа
|
||
</ToggleButton>
|
||
|
||
<ToggleButton
|
||
Grid.Column="1"
|
||
HorizontalAlignment="Stretch"
|
||
HorizontalContentAlignment="Center">
|
||
Автозапуск
|
||
</ToggleButton>
|
||
</Grid>
|
||
|
||
<TextBlock Text="Настройки:" FontSize="20"/>
|
||
|
||
<StackPanel>
|
||
<TextBlock Text="IP Aдрес:" FontSize="12"/>
|
||
<TextBox></TextBox>
|
||
</StackPanel>
|
||
|
||
<StackPanel>
|
||
<TextBlock Text="Порт:" FontSize="12"/>
|
||
<TextBox></TextBox>
|
||
</StackPanel>
|
||
|
||
<Grid ColumnDefinitions="*, *" ColumnSpacing="5">
|
||
<Button
|
||
Grid.Column="0"
|
||
HorizontalAlignment="Stretch"
|
||
HorizontalContentAlignment="Center">
|
||
Применить
|
||
</Button>
|
||
|
||
<Button
|
||
Grid.Column="1"
|
||
HorizontalAlignment="Stretch"
|
||
HorizontalContentAlignment="Center">
|
||
Сбросить
|
||
</Button>
|
||
</Grid>
|
||
</StackPanel>
|
||
</Window>
|