摘要: ![image](https://img2024.cnblogs.com/blog/2787080/202601/2787080-20260123160510617-54049264.png) 阅读全文
posted @ 2026-01-23 16:05 Timskt 阅读(2) 评论(0) 推荐(0)
摘要: <Popup IsOpen="True" x:Name="Popup" IsLightDismissEnabled="True"> <Border Background="Red" Padding="20"> <TextBlock Text="点击外部可关闭"/> </Border> </Popup 阅读全文
posted @ 2025-12-18 18:12 Timskt 阅读(10) 评论(0) 推荐(0)
摘要: 地址:https://github.com/AvaloniaUI/Avalonia/discussions/12468 字体下载:https://github.com/adobe-fonts/source-han-sans/blob/master/README-CN.md 阅读全文
posted @ 2025-12-15 10:55 Timskt 阅读(11) 评论(0) 推荐(0)
摘要: public static class SetShowCenterWindowHelper { public static void SetShowCenterWindow(Window targetWindow, Window owner) { targetWindow.WindowStartup 阅读全文
posted @ 2025-12-08 09:22 Timskt 阅读(8) 评论(0) 推荐(0)
摘要: public static IHost? Host { get; private set; } public static IServiceProvider ServiceProvider; // Initialization code. Don't use any Avalonia, third- 阅读全文
posted @ 2025-12-05 10:00 Timskt 阅读(16) 评论(0) 推荐(0)
摘要: <Style Selector="MenuItem.MainMenuHeader"> <Setter Property="Foreground" Value="{DynamicResource MainMenuHeaderForeColor}"/> <Style Selector="^:pointe 阅读全文
posted @ 2025-12-03 13:45 Timskt 阅读(9) 评论(0) 推荐(0)
摘要: SystemDecorations="BorderOnly" ExtendClientAreaChromeHints="NoChrome" ExtendClientAreaToDecorationsHint="True" ✔ 无标题栏 ✔ 保留系统 resize 边框 ✔ 自动支持鼠标 resize 阅读全文
posted @ 2025-12-03 10:40 Timskt 阅读(22) 评论(0) 推荐(0)
摘要: private void FullWorkingArea() { // 1. 健壮地获取当前屏幕 var curScreen = Screens.ScreenFromPoint(this.Position) ?? Screens.Primary; if (curScreen == null) ret 阅读全文
posted @ 2025-12-02 14:36 Timskt 阅读(24) 评论(0) 推荐(0)
摘要: Windows10复制粘贴功能不正常,解决方案如下: win+r打开后输入 cmd.exe /c echo off | clip 阅读全文
posted @ 2025-11-15 21:37 Timskt 阅读(8) 评论(0) 推荐(0)
摘要: 1. 增加root权限用户 1.1 SSH关闭允许root用户登陆 由于脚本小子太多了,老是ssh爆破,遂关闭root用户的ssh登录 vim /etc/ssh/sshd_config # 修改以下内容: PermitRootLogin no # 保存后重启服务: systemctl restart 阅读全文
posted @ 2025-11-14 23:39 Timskt 阅读(14) 评论(0) 推荐(0)