Initial commit.

This commit is contained in:
2026-03-13 10:23:47 +01:00
parent fd81c63020
commit 39c8b861c0
44 changed files with 1144 additions and 4 deletions

62
ApiClient/MainWindow.xaml Normal file
View 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>