From a46bccca2aaea6b8870b2a18548e710133b9a9bc Mon Sep 17 00:00:00 2001
From: "NB-PBG2H23AZH\\bib" <Yongkang.Zhang@edu.bib.de>
Date: Fri, 28 Feb 2025 12:09:38 +0100
Subject: [PATCH] SuchenFenster erstellt

---
 PrototypWPFHAG/PrototypWPFHAG.csproj |  2 +-
 PrototypWPFHAG/SuchenFenster.xaml    | 67 ++++++++++++++++++++++++++++
 PrototypWPFHAG/SuchenFenster.xaml.cs |  1 +
 3 files changed, 69 insertions(+), 1 deletion(-)
 create mode 100644 PrototypWPFHAG/SuchenFenster.xaml
 create mode 100644 PrototypWPFHAG/SuchenFenster.xaml.cs

diff --git a/PrototypWPFHAG/PrototypWPFHAG.csproj b/PrototypWPFHAG/PrototypWPFHAG.csproj
index 999d3ba..b1e5e62 100644
--- a/PrototypWPFHAG/PrototypWPFHAG.csproj
+++ b/PrototypWPFHAG/PrototypWPFHAG.csproj
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <OutputType>WinExe</OutputType>
-    <TargetFramework>net9.0-windows7.0</TargetFramework>
+    <TargetFramework>net8.0-windows</TargetFramework>
     <Nullable>enable</Nullable>
     <ImplicitUsings>enable</ImplicitUsings>
     <UseWPF>true</UseWPF>
diff --git a/PrototypWPFHAG/SuchenFenster.xaml b/PrototypWPFHAG/SuchenFenster.xaml
new file mode 100644
index 0000000..0106553
--- /dev/null
+++ b/PrototypWPFHAG/SuchenFenster.xaml
@@ -0,0 +1,67 @@
+<Window x:Class="SuchenFenster.MainWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        Title="Suchen Fenster" Height="600" Width="800">
+    <Grid>
+        <!-- 左侧垂直布局 -->
+        <Grid.ColumnDefinitions>
+            <ColumnDefinition Width="200"/>
+            <!-- 左侧固定宽度 -->
+            <ColumnDefinition Width="*"/>
+            <!-- 右侧占满剩余空间 -->
+        </Grid.ColumnDefinitions>
+
+        <!-- 左侧区域 -->
+        <StackPanel Orientation="Vertical" Margin="10">
+            <Grid Margin="0,0,0,10">
+                <Grid.ColumnDefinitions>
+                    <ColumnDefinition Width="*"/>
+                    <ColumnDefinition Width="Auto"/>
+                </Grid.ColumnDefinitions>
+                <Grid.RowDefinitions>
+                    <RowDefinition Height="Auto"/>
+                    <RowDefinition Height="Auto"/>
+                </Grid.RowDefinitions>
+                <TextBox x:Name="TextField" Grid.Row="0" Height="50" VerticalContentAlignment="Center" Margin="0,0,5,0"/>
+                <Border Grid.Row="0" Grid.Column="1" Background="LightGray" Height="50" Margin="5,0,0,0">
+                    <TextBlock Text="Bild hochladen" VerticalAlignment="Center" HorizontalAlignment="Center"/>
+                </Border>
+                <Line Grid.Row="0" Grid.Column="1" X1="0" Y1="25" X2="1" Y2="25" Stroke="Black" StrokeThickness="1" Margin="5,0,0,0"/>
+                <Button Content="Suchen" Width="180" Height="30" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Right" Margin="0,5,0,0"/>
+            </Grid>
+            <!-- PDFField -->
+            <Grid Margin="0,0,0,10">
+                <Grid.ColumnDefinitions>
+                    <ColumnDefinition Width="*"/>
+                    <ColumnDefinition Width="Auto"/>
+                </Grid.ColumnDefinitions>
+                <Border Background="LightGray" Height="30" Margin="0,0,0,0" Grid.Column="0">
+                    <TextBlock Text="PDF hochladen" VerticalAlignment="Center" HorizontalAlignment="Center" RenderTransformOrigin="0.514,5.613"/>
+                </Border>
+                <Button Content="ADD" Width="60" Height="30" Grid.Column="1" Margin="5,0,0,0"/>
+            </Grid>
+        </StackPanel>
+
+        <!-- 右侧区域 -->
+        <Grid Grid.Column="1" Margin="10">
+            <Label Content="Zeugnisse:" HorizontalAlignment="Left" Margin="0,2,0,8"/>
+            <!-- ListField -->
+            <ListBox x:Name="ListField" Margin="0,29,0,35" BorderThickness="1" BorderBrush="Black">
+    <ListBox.ItemTemplate>
+        <DataTemplate>
+            <StackPanel Orientation="Vertical">
+                <!-- 内容 -->
+                <TextBlock Text="{Binding}" VerticalAlignment="Center" HorizontalAlignment="Stretch" Padding="5"/>
+                <!-- 分隔线 -->
+                <Border Height="1" Background="Black" Margin="0,2,0,2"/>
+            </StackPanel>
+        </DataTemplate>
+    </ListBox.ItemTemplate>
+</ListBox>
+
+           
+            <!-- 删除按钮 -->
+            <Button Content="Löschen" Width="100" Height="30" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
+        </Grid>
+    </Grid>
+</Window>
\ No newline at end of file
diff --git a/PrototypWPFHAG/SuchenFenster.xaml.cs b/PrototypWPFHAG/SuchenFenster.xaml.cs
new file mode 100644
index 0000000..5f28270
--- /dev/null
+++ b/PrototypWPFHAG/SuchenFenster.xaml.cs
@@ -0,0 +1 @@
+
\ No newline at end of file