随笔分类 -  WPF

1 2 3 4 5 ··· 9 下一页
摘要:第一步骤,要安装Node.js,下载地址:https://nodejs.org/zh-cn/download 第二步骤, 不需要懂前端构建工具链,只是借用 npm 当一个"下载器",比手动去 CDN 上一个个右键另存为更可靠(能保证版本一致、文件完整)。在任意临时目录执行,我这里直接在桌面执行cmd 阅读全文
posted @ 2026-06-17 17:22 小林野夫 阅读(9) 评论(0) 推荐(0)
摘要:第一步骤,要安装Node.js,下载地址:https://nodejs.org/zh-cn/download 第二步骤,生成quill。 不需要懂前端构建工具链,只是借用 npm 当一个"下载器",比手动去 CDN 上一个个右键另存为更可靠(能保证版本一致、文件完整)。在任意临时目录执行,我这里直接 阅读全文
posted @ 2026-06-17 13:38 小林野夫 阅读(5) 评论(0) 推荐(0)
摘要:我们经常要遍历FlowDocument文档 查找元素,具体的写法之一 : 打印出文档的结构 private void TransformImagesTo642(FlowDocument flowDocument) { TextPointer navigator = flowDocument.Cont 阅读全文
posted @ 2024-04-26 06:37 小林野夫 阅读(60) 评论(0) 推荐(0)
摘要:存入数据库。 public string toxaml() { // Stream s = new MemoryStream(); // 其他的什么Stream类型都没问题 XamlWriter.Save( MemoryStream s=new MemoryStream(); TextRange d 阅读全文
posted @ 2024-04-25 19:38 小林野夫 阅读(106) 评论(0) 推荐(0)
摘要:cs文件: using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System. 阅读全文
posted @ 2024-04-22 01:29 小林野夫 阅读(294) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/xuliming/articles/StringFormat.html WPF中Binding使用StringFormat格式化字符串方法 货币格式 <TextBlock Text="{Binding Price, StringFormat= 阅读全文
posted @ 2024-04-20 12:50 小林野夫 阅读(577) 评论(0) 推荐(0)
摘要:原文:https://www.cnblogs.com/Cindys/archive/2012/09/11/2680501.html 空样式按钮 <Style x:Key="EmptyButtonStyle" TargetType="Button"> <Setter Property="Padding 阅读全文
posted @ 2024-04-18 16:03 小林野夫 阅读(110) 评论(0) 推荐(0)
摘要:Code: / Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Wi 阅读全文
posted @ 2024-04-18 01:55 小林野夫 阅读(64) 评论(0) 推荐(0)
摘要:TreeView展开所有节点 <TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="IsExpanded" Value="True"></Setter> </Style> 阅读全文
posted @ 2024-04-17 10:20 小林野夫 阅读(591) 评论(0) 推荐(0)
摘要:ContextMenu样式 对应的xaml代码: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-17 10:18 小林野夫 阅读(90) 评论(0) 推荐(0)
摘要:好看的boder 阴影 <Border BorderThickness="1" Grid.Column="2" Grid.Row="1"> <Border BorderThickness="1" Grid.Column="2" Grid.Row="1" Margin="5" BorderBrush= 阅读全文
posted @ 2024-04-17 08:40 小林野夫 阅读(51) 评论(0) 推荐(0)
摘要:原文链接:https://www.cnblogs.com/larissa-0464/p/10227483.html 数据绑定: 更新内容:补充在MVVM模式上的TreeView控件数据绑定的代码。 xaml代码: <TreeView Name="syntaxTree" ItemsSource="{B 阅读全文
posted @ 2024-04-15 01:02 小林野夫 阅读(695) 评论(0) 推荐(0)
摘要:使用方法 <!--可以独立使用--> 使用要点: 1、 必须在窗体的无参构造函数 初始化位置 添加 this.SizeChanged += cMNButton.SizeChanged_ChangedIcon;-2、必须在窗体的无参构造函数 初始化位置 设置图标颜色(默认白色) cMNButton.M 阅读全文
posted @ 2024-04-13 03:18 小林野夫 阅读(56) 评论(0) 推荐(0)
摘要:使用方法: View <Window x:Class="IndividualQAlibrary.MVVM.Views.AddQAView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http: 阅读全文
posted @ 2024-04-13 03:10 小林野夫 阅读(452) 评论(0) 推荐(0)

1 2 3 4 5 ··· 9 下一页
原文链接:https://www.cnblogs.com/cdaniu/