ChatX/chatclient/App.xaml
XuShanQiXun b7d5c2584a 优化项目配置与用户设置管理
- 修改 `MainWindow.xaml.cs` 中的登录响应逻辑,确保获取 `token` 并检查聊天消息状态。
- 更改 `chatclient.csproj` 的目标框架为 `net8.0-windows7.0`,并设置调试类型为 `embedded`。
- 在 `App.config` 中添加用户设置配置,支持聊天信息保存上限。
- 新增 `User` 类于 `ChatData.cs`,存储用户信息。
- 在 `Program.cs` 中实现客户端连接的锁定机制,确保线程安全。
- 修正 `log4net.config` 中的日志文件路径格式。
- 新增 `Settings1.Designer.cs` 和 `Settings1.settings` 文件以管理用户设置。
2025-06-21 09:11:49 +08:00

20 lines
1.4 KiB
XML

<Application x:Class="chatclient.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:chatclient"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Light" PrimaryColor="DeepPurple" SecondaryColor="Lime" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign2.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
<ResourceDictionary Source="pack://application:,,,/chatclient;component/Data/MaterialTrayMenuItem.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>