ADD: SearchWindow with logic from Suchenfenster + "Zurück"-Button to change back to MainWindow DEL: SuchenFenster (exhcanged with Search Window)
69 lines
3.4 KiB
XML
69 lines
3.4 KiB
XML
<Window x:Class="PrototypWPFHAG.SearchWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:PrototypWPFHAG"
|
|
Title="Such 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>
|
|
<Button Content="Zurück " Margin="5,380" Click="BackToLogIn_Click"/>
|
|
</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> |