博客园 - ﹎蓝言觅ぷ雨
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=128773
2020-03-03T07:05:16Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
feed.cnblogs.com
https://www.cnblogs.com/lanymy/p/8984407.html
InstallShield 创建 visual studio 工程的时候 指向 任意 visual studio 版本 方法 (修改 计算机 默认 visual studio shell 版本) - ﹎蓝言觅ぷ雨
这需要 修改 计算机 默认 visual studio shell 版本 注册表 HKEY_CLASSES_ROOT VisualStudio.DTE 配置节点 描述的是 默认的 visual studio shell 版本 修改 CLSID CurVer 为要使用的 visual studio s
2018-05-03T03:11:00Z
2018-05-03T03:11:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】这需要 修改 计算机 默认 visual studio shell 版本 注册表 HKEY_CLASSES_ROOT VisualStudio.DTE 配置节点 描述的是 默认的 visual studio shell 版本 修改 CLSID CurVer 为要使用的 visual studio s <a href="https://www.cnblogs.com/lanymy/p/8984407.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/p/3242569.html
WPF ScrollViewer(滚动条) 自定义样式表制作 再发一套样式 细节优化 - ﹎蓝言觅ぷ雨
艾尼路 出的效果图 本人嵌套WPF ScrollViewer(滚动条) 自定义样式表制作 图文并茂 WPF ScrollViewer(滚动条) 自定义样式表制作 (改良+美化)源代码
2013-08-07T02:27:00Z
2013-08-07T02:27:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】艾尼路 出的效果图 本人嵌套WPF ScrollViewer(滚动条) 自定义样式表制作 图文并茂 WPF ScrollViewer(滚动条) 自定义样式表制作 (改良+美化)源代码 <a href="https://www.cnblogs.com/lanymy/p/3242569.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2013/05/20/3088516.html
WPF ScrollViewer(滚动条) 自定义样式表制作 (改良+美化) - ﹎蓝言觅ぷ雨
注释直接写在代码里了 不太理解意思的 可以先去看看我上一篇 WPF ScrollViewer(滚动条) 自定义样式表制作 图文并茂滚动条因为要在触摸屏上用 所以我设计的很宽 宽度可以自己改 把宽度变量单独拿出来了先上效果图还没滚动已滚动区域滚动到底部内容够显示,不需要滚动条的时候<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sy
2013-05-20T06:17:00Z
2013-05-20T06:17:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】注释直接写在代码里了 不太理解意思的 可以先去看看我上一篇 WPF ScrollViewer(滚动条) 自定义样式表制作 图文并茂滚动条因为要在触摸屏上用 所以我设计的很宽 宽度可以自己改 把宽度变量单独拿出来了先上效果图还没滚动已滚动区域滚动到底部内容够显示,不需要滚动条的时候<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sy <a href="https://www.cnblogs.com/lanymy/archive/2013/05/20/3088516.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2013/04/01/2993602.html
WPF ScrollViewer(滚动条) 自定义样式表制作 图文并茂 - ﹎蓝言觅ぷ雨
先上效果图正常样式拖动时样式好下面 开始吧=================================================================打开blend 新建个 WPF应用程序工程 点击左上角 文件 → 新建项目项目类型WPF→右侧选WPF应用程序→项目名称你随便起一个用输入的ScrollViewerStyle→点确定,一个空的项目工程就建好了建好工程后,blend会自动打开MainWindow窗体(以下简称画布),我们在这编辑就可以了先在窗体上创建一个ScrollViewer,步骤:打开资产面板→控件→鼠标左键点下ScrollViewer,然后鼠标指针图标会
2013-04-01T07:37:00Z
2013-04-01T07:37:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】先上效果图正常样式拖动时样式好下面 开始吧=================================================================打开blend 新建个 WPF应用程序工程 点击左上角 文件 → 新建项目项目类型WPF→右侧选WPF应用程序→项目名称你随便起一个用输入的ScrollViewerStyle→点确定,一个空的项目工程就建好了建好工程后,blend会自动打开MainWindow窗体(以下简称画布),我们在这编辑就可以了先在窗体上创建一个ScrollViewer,步骤:打开资产面板→控件→鼠标左键点下ScrollViewer,然后鼠标指针图标会 <a href="https://www.cnblogs.com/lanymy/archive/2013/04/01/2993602.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2013/03/07/2948509.html
WPF Calendar 日历控件 样式自定义 - ﹎蓝言觅ぷ雨
粗略的在代码上做了些注释blend 生成出来的模版 有的时候 会生成 跟 vs ui界面不兼容的代码 会导致可视化设计界面 报错崩溃掉 但是确不影响 程序的编译运行这个样式表 在vs 里会提示动画不兼容 Foreground属性 报错先上图看下样式下面是代码View Code 1 <Window x:Class="CalendarStyleWpfApplication.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x=&
2013-03-07T09:35:00Z
2013-03-07T09:35:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】粗略的在代码上做了些注释blend 生成出来的模版 有的时候 会生成 跟 vs ui界面不兼容的代码 会导致可视化设计界面 报错崩溃掉 但是确不影响 程序的编译运行这个样式表 在vs 里会提示动画不兼容 Foreground属性 报错先上图看下样式下面是代码View Code 1 <Window x:Class="CalendarStyleWpfApplication.MainWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x=& <a href="https://www.cnblogs.com/lanymy/archive/2013/03/07/2948509.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/11/22/2782585.html
WPF查找子控件和父控件方法 - ﹎蓝言觅ぷ雨
public List<T> GetChildObjects<T>(DependencyObject obj, string name) where T : FrameworkElement { DependencyObject child = null; List<T> childList = new List<T>(); for (int i = 0; i <= VisualTreeHelper.GetChildrenCount(obj) - 1; i++) { ...
2012-11-22T06:07:00Z
2012-11-22T06:07:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】public List<T> GetChildObjects<T>(DependencyObject obj, string name) where T : FrameworkElement { DependencyObject child = null; List<T> childList = new List<T>(); for (int i = 0; i <= VisualTreeHelper.GetChildrenCount(obj) - 1; i++) { ... <a href="https://www.cnblogs.com/lanymy/archive/2012/11/22/2782585.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/11/16/2772746.html
c# 委托 事件 lamda 简写 - ﹎蓝言觅ぷ雨
btnOK.Click += delegate{ MessageBox.Show("OK"); };btnOK.Click += (sender, e) => { MessageBox.Show("OK"); };
2012-11-16T02:23:00Z
2012-11-16T02:23:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】btnOK.Click += delegate{ MessageBox.Show("OK"); };btnOK.Click += (sender, e) => { MessageBox.Show("OK"); }; <a href="https://www.cnblogs.com/lanymy/archive/2012/11/16/2772746.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/11/12/2766029.html
WPF 控件 深度克隆 - ﹎蓝言觅ぷ雨
http://social.msdn.microsoft.com/Forums/zh-SG/wpfzhchs/thread/e5c87129-966a-4d51-a934-ccb8fc7620ec比如 canvas里面有一个RichTextBox1 ,我现在要New一个新RichTextBox2 ,将RichTextBox1 的内容事件复制到RichTextBox2,俩个可以共存在canvas;有没有简单点类似Winform的克隆呢!string xaml =System.Windows.Markup.XamlWriter.Save(rtb1); RichTextBox rtb2 =Syste
2012-11-12T03:50:00Z
2012-11-12T03:50:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】http://social.msdn.microsoft.com/Forums/zh-SG/wpfzhchs/thread/e5c87129-966a-4d51-a934-ccb8fc7620ec比如 canvas里面有一个RichTextBox1 ,我现在要New一个新RichTextBox2 ,将RichTextBox1 的内容事件复制到RichTextBox2,俩个可以共存在canvas;有没有简单点类似Winform的克隆呢!string xaml =System.Windows.Markup.XamlWriter.Save(rtb1); RichTextBox rtb2 =Syste <a href="https://www.cnblogs.com/lanymy/archive/2012/11/12/2766029.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/10/23/2735096.html
WPF 启动唯一程序(项目,exe,实例) - ﹎蓝言觅ぷ雨
描述:用户多次快速开启WPF程序的时候 只运行起来 一个 程序(exe) 其他多开的 进程 自动关闭掉App.xaml.cs文件 1 protected override void OnStartup(StartupEventArgs e) 2 { 3 //当前运行WPF程序的进程实例 4 Process process = Process.GetCurrentProcess(); 5 //遍历WPF程序的同名进程组 6 foreach (Process p in P...
2012-10-23T02:54:00Z
2012-10-23T02:54:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】描述:用户多次快速开启WPF程序的时候 只运行起来 一个 程序(exe) 其他多开的 进程 自动关闭掉App.xaml.cs文件 1 protected override void OnStartup(StartupEventArgs e) 2 { 3 //当前运行WPF程序的进程实例 4 Process process = Process.GetCurrentProcess(); 5 //遍历WPF程序的同名进程组 6 foreach (Process p in P... <a href="https://www.cnblogs.com/lanymy/archive/2012/10/23/2735096.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/07/17/2595315.html
c# 枚举操作 正运算 逆运算 - ﹎蓝言觅ぷ雨
没用控制台写,用WPF写的例子using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using
2012-07-17T07:38:00Z
2012-07-17T07:38:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】没用控制台写,用WPF写的例子using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using <a href="https://www.cnblogs.com/lanymy/archive/2012/07/17/2595315.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/07/11/2586643.html
WPF 走马灯 文字滚动 自定义控件 - ﹎蓝言觅ぷ雨
/// <summary> /// Label走马灯自定义控件 /// </summary> [ToolboxBitmap(typeof(Label))] //设置工具箱中显示的图标 public class ScrollingTextControl : Label { /// <summary> /// 定时器 /// </summary> Timer MarqueeTimer = new Timer(); /// <summary> /// 滚动文字源 /...
2012-07-11T09:14:00Z
2012-07-11T09:14:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】/// <summary> /// Label走马灯自定义控件 /// </summary> [ToolboxBitmap(typeof(Label))] //设置工具箱中显示的图标 public class ScrollingTextControl : Label { /// <summary> /// 定时器 /// </summary> Timer MarqueeTimer = new Timer(); /// <summary> /// 滚动文字源 /... <a href="https://www.cnblogs.com/lanymy/archive/2012/07/11/2586643.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/07/06/2579692.html
wpf 图片操作类 ImageBrush BitmapImage - ﹎蓝言觅ぷ雨
/// <summary> /// 解析字节数组成图片 /// </summary> /// <param name="byteArray"></param> /// <returns></returns> public static BitmapImage ByteArrayToBitmapImage(byte[] byteArray) { BitmapImage bmp = null; try { bmp = ...
2012-07-06T08:47:00Z
2012-07-06T08:47:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】/// <summary> /// 解析字节数组成图片 /// </summary> /// <param name="byteArray"></param> /// <returns></returns> public static BitmapImage ByteArrayToBitmapImage(byte[] byteArray) { BitmapImage bmp = null; try { bmp = ... <a href="https://www.cnblogs.com/lanymy/archive/2012/07/06/2579692.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/07/06/2579680.html
c# 经纬度距离计算 - ﹎蓝言觅ぷ雨
/// <summary> /// 经纬度之间的距离 /// </summary> /// <param name="from"></param> /// <param name="to"></param> /// <returns></returns> public static double CalcDistance(System.Windows.Point from, System.Windows.Point to) { double rad = 637
2012-07-06T08:41:00Z
2012-07-06T08:41:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】/// <summary> /// 经纬度之间的距离 /// </summary> /// <param name="from"></param> /// <param name="to"></param> /// <returns></returns> public static double CalcDistance(System.Windows.Point from, System.Windows.Point to) { double rad = 637 <a href="https://www.cnblogs.com/lanymy/archive/2012/07/06/2579680.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/07/06/2579672.html
c# 通用类扩展方法 备注 - ﹎蓝言觅ぷ雨
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Common{ public static class ExtensionFuncation { #region 判断是否为空 /// <summary> /// 判断对象是否为null或者为空 /// </summary> /// <param name="o"></param> /// <returns></ret...
2012-07-06T08:38:00Z
2012-07-06T08:38:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Common{ public static class ExtensionFuncation { #region 判断是否为空 /// <summary> /// 判断对象是否为null或者为空 /// </summary> /// <param name="o"></param> /// <returns></ret... <a href="https://www.cnblogs.com/lanymy/archive/2012/07/06/2579672.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/07/04/2575942.html
WPF 结合 微软的手写板 进行输入 - ﹎蓝言觅ぷ雨
WPF 结合 微软的手写板 进行输入1 <my:ImageButton Grid.Row="2" Height="42" Margin="278,2,0,0" x:Name="btnInput" VerticalAlignment="Top" Click="btnGetInput_Click" DefaultSource="/JiaXinTech.WPF.HotelTerminal;component/Images/JD/Attractions_Rim_S.p
2012-07-04T03:43:00Z
2012-07-04T03:43:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】WPF 结合 微软的手写板 进行输入1 <my:ImageButton Grid.Row="2" Height="42" Margin="278,2,0,0" x:Name="btnInput" VerticalAlignment="Top" Click="btnGetInput_Click" DefaultSource="/JiaXinTech.WPF.HotelTerminal;component/Images/JD/Attractions_Rim_S.p <a href="https://www.cnblogs.com/lanymy/archive/2012/07/04/2575942.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/06/26/2563069.html
c# 三元运算符 表达式赋值的时候 我老容易写错 备注下 - ﹎蓝言觅ぷ雨
CanPrev ? btnLeft.Visibility = Visibility.Visible : btnLeft.Visibility = Visibility.Visible;老是被if else 的逻辑 思维 导向 写成 这个样子 这是错误的正确写法如下btnLeft.Visibility = CanPrev ? Visibility.Visible : Visibility.Visible;囧 使用的时候 写错 不下10次 还是 记下来 备注下吧
2012-06-26T01:40:00Z
2012-06-26T01:40:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】CanPrev ? btnLeft.Visibility = Visibility.Visible : btnLeft.Visibility = Visibility.Visible;老是被if else 的逻辑 思维 导向 写成 这个样子 这是错误的正确写法如下btnLeft.Visibility = CanPrev ? Visibility.Visible : Visibility.Visible;囧 使用的时候 写错 不下10次 还是 记下来 备注下吧 <a href="https://www.cnblogs.com/lanymy/archive/2012/06/26/2563069.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/06/20/2556433.html
WPF Toolkit AutoCompleteBox 实体类绑定 关键字自定义关联搜索匹配 - ﹎蓝言觅ぷ雨
WPF Toolkit AutoCompleteBox 实体类绑定 关键字自定义关联搜索匹配网上的例子都是零散的 翻阅了 很多篇文章后 再根据 自己项目的实际需求 整理出一个完整的 应用例子汉字首字母全文匹配提取绑定实体类相应的ID值XAMLView Code 1 <Window xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" x:Class="JiaXinTech.WPF.HotelTerminal.Test3&q
2012-06-20T08:26:00Z
2012-06-20T08:26:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】WPF Toolkit AutoCompleteBox 实体类绑定 关键字自定义关联搜索匹配网上的例子都是零散的 翻阅了 很多篇文章后 再根据 自己项目的实际需求 整理出一个完整的 应用例子汉字首字母全文匹配提取绑定实体类相应的ID值XAMLView Code 1 <Window xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit" x:Class="JiaXinTech.WPF.HotelTerminal.Test3&q <a href="https://www.cnblogs.com/lanymy/archive/2012/06/20/2556433.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/02/02/2335298.html
数据提交后,弹出询问框(询问继续添加记录,或返回) - ﹎蓝言觅ぷ雨
if (提交成功) { Response.Write ("<script language=javascript>if (confirm('是否继续添加')) {继续添加}else {返回}</script>") }if (提交成功) { Response.Write ("<script language=javascript>if (confirm('是否继续添加')) {return;}else {location.src='返回页面地址';}</script>&q
2012-02-02T00:43:00Z
2012-02-02T00:43:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】if (提交成功) { Response.Write ("<script language=javascript>if (confirm('是否继续添加')) {继续添加}else {返回}</script>") }if (提交成功) { Response.Write ("<script language=javascript>if (confirm('是否继续添加')) {return;}else {location.src='返回页面地址';}</script>&q <a href="https://www.cnblogs.com/lanymy/archive/2012/02/02/2335298.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/01/14/2322463.html
字符串格式化提示参数格式错误 - ﹎蓝言觅ぷ雨
string str = " aaaa {CreateTemplateTime} {0}";string.Format(str,aaa);报错 字符串格式化提示参数格式错误原因{CreateTemplateTime} 用了 "{}" 里面没有用整型 而用了 字符串占位符 所以提示参数格式 错误
2012-01-14T09:04:00Z
2012-01-14T09:04:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】string str = " aaaa {CreateTemplateTime} {0}";string.Format(str,aaa);报错 字符串格式化提示参数格式错误原因{CreateTemplateTime} 用了 "{}" 里面没有用整型 而用了 字符串占位符 所以提示参数格式 错误 <a href="https://www.cnblogs.com/lanymy/archive/2012/01/14/2322463.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/lanymy/archive/2012/01/14/2322217.html
字符串参数格式化 string.Format和string.Replace 选择使用的一些想法 - ﹎蓝言觅ぷ雨
小篇幅字符串格式化 建议用 string.Format如 string str = @"Title:{0} Name:{1} Content:{2}";使用string.Format 格式化参数列 参数用意简单明了大篇幅字符串格式化 建议用string.Replace如 string str = @"create proc [{PrefixName}{ApplicationName}_AddUpdate] {ParameterColumns}@ID int,11111111111111111111111111 AS IF EXISTS(SELECT [{strPr
2012-01-14T01:45:00Z
2012-01-14T01:45:00Z
﹎蓝言觅ぷ雨
https://www.cnblogs.com/lanymy/
【摘要】小篇幅字符串格式化 建议用 string.Format如 string str = @"Title:{0} Name:{1} Content:{2}";使用string.Format 格式化参数列 参数用意简单明了大篇幅字符串格式化 建议用string.Replace如 string str = @"create proc [{PrefixName}{ApplicationName}_AddUpdate] {ParameterColumns}@ID int,11111111111111111111111111 AS IF EXISTS(SELECT [{strPr <a href="https://www.cnblogs.com/lanymy/archive/2012/01/14/2322217.html" target="_blank">阅读全文</a>