1 Star 0 Fork 6

yangxingxiang/免费开源爬虫ChatGPT API

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MainWindow.xaml 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
L-Z 提交于 2023-11-03 13:48 . wpf界面
<Window x:Class="chatgpt_LKZ4251.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:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:chatgpt_LKZ4251"
mc:Ignorable="d"
Title="" Height="450" Width="800">
<hc:ScrollViewer x:Name="sv">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="24"/>
<RowDefinition Height="*"/>
<RowDefinition Height="24"/>
<RowDefinition Height="150"/>
<RowDefinition Height="24"/>
</Grid.RowDefinitions>
<TextBlock Text="对话记录:" HorizontalAlignment="Left" Grid.Row="0"/>
<hc:TextBox x:Name="tbH" Grid.Row="1" Background="LightCyan" Text="{Binding History}" IsReadOnly="True" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Hidden"/>
<TextBlock Text="请输入问题:" HorizontalAlignment="Left" Grid.Row="2"/>
<Button x:Name="btnClear" Content="清空记录" Click="btnClear_Click" HorizontalAlignment="Right" Width="120" Margin="0,0,130,0" Grid.Row="2"/>
<Button x:Name="btnNew" Content="新的对话" Click="btnNew_Click" HorizontalAlignment="Right" Width="120" Grid.Row="2"/>
<TextBox x:Name="tbQ" Background="LightGray" KeyDown="tbQ_KeyDown" Grid.Row="3" Text="{Binding Question, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible"/>
<Button x:Name="btnSend" Content="发送" Click="btnSend_Click" HorizontalAlignment="Right" Width="120" Grid.Row="4"/>
</Grid>
</hc:ScrollViewer>
</Window>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/yangxingxiang/chatgpt-api.git
git@gitee.com:yangxingxiang/chatgpt-api.git
yangxingxiang
chatgpt-api
免费开源爬虫ChatGPT API
master

搜索帮助