SuchenFenster erstellt
This commit is contained in:
parent
ead933953e
commit
a46bccca2a
@ -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>
|
||||
|
67
PrototypWPFHAG/SuchenFenster.xaml
Normal file
67
PrototypWPFHAG/SuchenFenster.xaml
Normal file
@ -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>
|
1
PrototypWPFHAG/SuchenFenster.xaml.cs
Normal file
1
PrototypWPFHAG/SuchenFenster.xaml.cs
Normal file
@ -0,0 +1 @@
|
||||
|
Loading…
x
Reference in New Issue
Block a user