76 lines
2.8 KiB
XML
76 lines
2.8 KiB
XML
<wpf:MvvmWindow x:TypeArguments="local:MainWindowViewModel"
|
|
x:Class="ClientApiPoC.OnPremiseApp.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
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:local="clr-namespace:ClientApiPoC.OnPremiseApp"
|
|
xmlns:wpf="clr-namespace:ClientApiPoC.Shared.Wpf;assembly=Shared.Wpf"
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
mc:Ignorable="d"
|
|
Title="On-Premise Gateway"
|
|
Width="384"
|
|
Height="AUTO"
|
|
MaxHeight="144"
|
|
ResizeMode="CanMinimize"
|
|
WindowStartupLocation="CenterScreen">
|
|
<Grid RowDefinitions="AUTO, AUTO"
|
|
ColumnDefinitions="*, AUTO"
|
|
Margin="12">
|
|
|
|
<Grid Grid.Row="0"
|
|
Grid.Column="0"
|
|
RowDefinitions="AUTO, AUTO"
|
|
ColumnDefinitions="*">
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Grid.Column="0"
|
|
Text="Base-URL:" />
|
|
|
|
<TextBox Grid.Row="1"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
IsEnabled="{Binding UrlTextFieldEnabled}"
|
|
Text="{Binding ApiServiceUrl}" />
|
|
|
|
</Grid>
|
|
|
|
<Button Grid.Row="0"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Stretch"
|
|
Padding="5"
|
|
Margin="5, 0, 0, 0"
|
|
Content="{Binding ConnectButtonText}"
|
|
IsEnabled="{Binding ConnectButtonEnabled}"
|
|
Command="{Binding ToggleConnectionCommand}" />
|
|
|
|
<Grid Grid.Row="1"
|
|
Grid.Column="0"
|
|
RowDefinitions="AUTO, AUTO"
|
|
ColumnDefinitions="*"
|
|
Margin="0, 12, 0, 0">
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Grid.Column="0"
|
|
Text="Local client data:" />
|
|
|
|
<TextBox Grid.Row="1"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Text="{Binding LocalClientData, UpdateSourceTrigger=PropertyChanged}">
|
|
</TextBox>
|
|
|
|
</Grid>
|
|
|
|
<Button Grid.Row="1"
|
|
Grid.Column="1"
|
|
VerticalAlignment="Stretch"
|
|
Padding="5"
|
|
Margin="5, 12, 0, 0"
|
|
IsDefault="True"
|
|
Content="Set data"
|
|
IsEnabled="{Binding SetLocalClientDataButtonEnabled}"
|
|
Command="{Binding SetLocalClientDataCommand}" />
|
|
|
|
</Grid>
|
|
</wpf:MvvmWindow> |