弹来弹去跑马灯!

随笔分类 -  WPF

WPF C#
摘要:WPF刮刮乐 <Window x:Class="WpfApp2.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi 阅读全文
posted @ 2025-01-09 19:27 wgscd 阅读(5) 评论(0) 推荐(0) 编辑
摘要:WPF里webview2会一直处于其他控件最上层,是个历史遗留问题。 为了能在webview2里鼠标移动让窗体跟着移动位置 阅读全文
posted @ 2024-07-15 12:13 wgscd 阅读(108) 评论(0) 推荐(0) 编辑
摘要:WPF 动态加载嵌入主程序的DLL 阅读全文
posted @ 2024-07-11 10:54 wgscd 阅读(121) 评论(0) 推荐(0) 编辑
摘要:wpf ScrollViewer 滚动动画 阅读全文
posted @ 2023-07-28 09:23 wgscd 阅读(49) 评论(0) 推荐(0) 编辑
摘要:private const int WS_EX_TRANSPARENT = 0x20; private const int GWL_EXSTYLE = -20; /// <summary> /// window 扩展样式 分层显示 /// </summary> private const int W 阅读全文
posted @ 2023-06-12 15:56 wgscd 阅读(96) 评论(0) 推荐(0) 编辑
摘要:WPF 打字效果 阅读全文
posted @ 2023-03-05 22:02 wgscd 阅读(85) 评论(0) 推荐(0) 编辑
摘要:例如将字体放入d:/Fonts 文件夹。然后就可以通过类似 btn.FontFamily = new FontFamily("file:///d:/Fonts/#Ashley");的形式使用。 获取字体文件的字体名称: string fontFilePath = "d:\\Fonts\\ygyxsz 阅读全文
posted @ 2023-02-12 20:09 wgscd 阅读(246) 评论(0) 推荐(0) 编辑
摘要:void SuppressScriptErrors(WebBrowser webBrowser, bool hide) { webBrowser.Navigating += (s, e) => { var fiComWebBrowser = typeof(WebBrowser).GetField(" 阅读全文
posted @ 2022-06-07 18:26 wgscd 阅读(488) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2022-03-17 22:51 wgscd 阅读(122) 评论(0) 推荐(0) 编辑
摘要:加个属性: btn.SetValue(Stylus.IsPressAndHoldEnabledProperty,false); 或者在样式里设置: <Style x:Key="MyButtonStyle" TargetType="{x:Type Button}"> <Setter Property= 阅读全文
posted @ 2021-09-23 10:48 wgscd 阅读(97) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threadin 阅读全文
posted @ 2021-09-04 09:28 wgscd 阅读(120) 评论(0) 推荐(0) 编辑
摘要:using the online website https://imagetosketch.com/ <Window x:Class="WpfMosaic.PhotoSketchWind" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/pr 阅读全文
posted @ 2021-08-02 15:48 wgscd 阅读(61) 评论(0) 推荐(0) 编辑
摘要:假设文件大小一样就表示文件一模一样,是重复文件 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Syst 阅读全文
posted @ 2021-07-31 12:03 wgscd 阅读(92) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System 阅读全文
posted @ 2021-07-30 17:19 wgscd 阅读(50) 评论(0) 推荐(0) 编辑
摘要://随机多边形:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; usin 阅读全文
posted @ 2021-07-16 14:38 wgscd 阅读(799) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Draw 阅读全文
posted @ 2021-07-12 16:31 wgscd 阅读(1222) 评论(1) 推荐(0) 编辑
摘要:<DataGrid > <DataGrid.CellStyle> <Style TargetType="DataGridCell"> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="Bac 阅读全文
posted @ 2021-05-12 14:31 wgscd 阅读(2418) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
posted @ 2020-11-03 15:24 wgscd 阅读(720) 评论(0) 推荐(0) 编辑
摘要:// <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2020-08-11 16:44 wgscd 阅读(312) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示