Initial commit.
This commit is contained in:
62
ApiClient/MainWindow.xaml
Normal file
62
ApiClient/MainWindow.xaml
Normal file
@@ -0,0 +1,62 @@
|
||||
<wpf:MvvmWindow x:TypeArguments="local:MainWindowViewModel"
|
||||
x:Class="ClientApiPoC.ApiClient.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.ApiClient"
|
||||
xmlns:wpf="clr-namespace:ClientApiPoC.Shared.Wpf;assembly=Shared.Wpf"
|
||||
mc:Ignorable="d"
|
||||
Title="API-Client"
|
||||
Width="512"
|
||||
Height="384"
|
||||
ResizeMode="CanMinimize">
|
||||
<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 ControlsEnabled}"
|
||||
Text="{Binding ApiServiceUrl}" />
|
||||
|
||||
</Grid>
|
||||
|
||||
<Button Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
VerticalAlignment="Stretch"
|
||||
Padding="5"
|
||||
Margin="5, 0, 0, 0"
|
||||
IsDefault="True"
|
||||
Content="HTTP-GET"
|
||||
IsEnabled="{Binding ControlsEnabled}"
|
||||
Command="{Binding HttpGetButtonCommand}" />
|
||||
|
||||
<TextBlock Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="0, 5, 0, 0"
|
||||
Text="Result:" />
|
||||
|
||||
<TextBox Grid.Row="2"
|
||||
Grid.Column="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Padding="5"
|
||||
HorizontalScrollBarVisibility="Auto"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
IsReadOnly="True"
|
||||
FontFamily="Consolas"
|
||||
Text="{Binding RequestResultDataString, Mode=OneWay}" />
|
||||
|
||||
</Grid>
|
||||
</wpf:MvvmWindow>
|
||||
Reference in New Issue
Block a user