ChaoXingAutoClass
【WinUI】基于 XFEstudio 的 XFEWinUIApplication 模板重建的 WinUI 3 课程工作台。二维码和账号密码登录、课程 GridView、章节、播放进度、学习笔记及日志均使用原生 WinUI 控件。网页播放器运行在独立后台进程中,界面不显示课程网站。
关注
0
Fork
0
Star
0
using XFEExtension.NetCore.AutoConfig;
using XFEExtension.NetCore.WinUIHelper.Utilities.Helper;
namespace ChaoXingAutoClass.Profiles.CrossVersionProfiles
{
public partial class SystemProfile : XFEProfile
{
public SystemProfile() => ProfilePath = $@"{AppPathHelper.LocalProfile}\{nameof(SystemProfile)}";
/// <summary>
/// 主题颜色
/// </summary>
[ProfileProperty]
public static partial ElementTheme Theme { get; set; } = ElementTheme.Default;
/// <summary>
/// 是否自动启动
/// </summary>
[ProfileProperty]
public static partial bool AutoStart { get; set; }
static partial void SetThemeProperty(ref ElementTheme value) => AppThemeHelper.ChangeTheme(value);
}
}
using XFEExtension.NetCore.AutoConfig;
using XFEExtension.NetCore.WinUIHelper.Utilities.Helper;
namespace ChaoXingAutoClass.Profiles.CrossVersionProfiles
{
public partial class SystemProfile : XFEProfile
{
public SystemProfile() => ProfilePath = $@"{AppPathHelper.LocalProfile}\{nameof(SystemProfile)}";
/// <summary>
/// 主题颜色
/// </summary>
[ProfileProperty]
public static partial ElementTheme Theme { get; set; } = ElementTheme.Default;
/// <summary>
/// 是否自动启动
/// </summary>
[ProfileProperty]
public static partial bool AutoStart { get; set; }
static partial void SetThemeProperty(ref ElementTheme value) => AppThemeHelper.ChangeTheme(value);
}
}