重写设置窗口

This commit is contained in:
yangwx
2025-03-13 01:06:32 +08:00
parent ca08aa615c
commit 296d450496
8 changed files with 160 additions and 95 deletions

View File

@@ -18,8 +18,7 @@
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="120" />
<RowDefinition Height="50" />
<RowDefinition Height="120" />
</Grid.RowDefinitions>
<!--First line: Display output text to "Markdown" container-->
@@ -37,6 +36,10 @@
</Grid>
<!-- the second line -->
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="50" />
</Grid.ColumnDefinitions>
<TextBox x:Name="InputBox"
Text="{Binding InputText , Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Grid.Row="1" Margin="5" AcceptsReturn="True"
@@ -46,10 +49,13 @@
<KeyBinding Command="{Binding SubmitQuestionCommand}" Key="Enter"/>
</TextBox.InputBindings>
</TextBox>
<Button x:Name="BtnSubmit" Content="提交" FontSize="18" Margin="5"
Grid.Column="1" Grid.ColumnSpan="1" Grid.RowSpan="1"
Style="{StaticResource RoundCornerButtonStyle}" Command="{Binding SubmitQuestionCommand}" />
</Grid>
<!-- The third line submit button -->
<Grid Grid.Row="2">
<!--<Grid Grid.Row="2">
<WrapPanel Grid.Row="2" HorizontalAlignment="Right">
<Button x:Name="BtnNewChat" Content="新建会话"
@@ -65,7 +71,7 @@
Width="100"
Height="30"/>
</WrapPanel>
</Grid>
</Grid>-->
</Grid>
</UserControl>