WINUI3,WinAppSDK1.7实现Window的Min/Max width,height
来自github官方示例。public sealed partial class MainWindow: Window { private static WinProc newWndProc = null; private static IntPtr oldWndProc = IntPtr.Zero; private delegate IntPtr WinProc(IntP
Async
来自github官方示例。public sealed partial class MainWindow: Window { private static WinProc newWndProc = null; private static IntPtr oldWndProc = IntPtr.Zero; private delegate IntPtr WinProc(IntP
在添加了LibVLCSharp和LibVLCSharp.Platforms.Windows的Nuget包后,新建media绑定至XAML页面的VideoView的MediaPlayer,启动Play事件,VLC会弹出一个单独的Foreground窗口来进行输出,尝试了两种方式将MediaPlayer约束近当前窗口。1.句柄方法0X00.引用using LibVLCSharp.Platforms.W
首先在在工程里添加OpenCvSharp的依赖项。0X00.引用using OpenCvSharp; using Size = OpenCvSharp.Size; using Point = OpenCvSharp.Point; using OpenCvSharp.Extensions; 0X01.添加图像源private async void PickAFileButton_Click(obje
最近有个案子需要对大量的种子文件进行下载,但是硬盘容量有限,需要提前对种子文件的大小进行统计,没有找到好用的工具,所以用BencodeNET做一个简单的实现。0X00.引用using BencodeNET.Parsing;0X01.声明Torrent类internal class Torrent { public string displayName { get; set; }
0x00.相关 Win UI 3.0 ContentDialog XamlRoot 0x01.现象使用win ui 3.0,创建content dialog,使用showasync(),报错Value does not fall within the expected range.ContentDialog contentDialog = new ContentDialog