会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
莫欺
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
2016年8月31日
Blend打不开wpf项目,提示无法识别的工具版本“12.0”
摘要: 讲项目文件用记事本打开然后修改为“14.0”即可
阅读全文
posted @ 2016-08-31 15:36 莫欺
阅读(651)
评论(0)
推荐(0)
2016年3月26日
PropertyMetadata和UIPropertyMetadata的一点区别
摘要: 使用UIPropertyMetadata写一个Brush的依赖属性。 使用PropertyMetadata的话Binding 绑定ErroColor或者直接写一个色值,界面不会变化。
阅读全文
posted @ 2016-03-26 15:40 莫欺
阅读(2243)
评论(0)
推荐(0)
2016年3月11日
wpf,离线状态下部分功能不可用。
摘要: 离线状态下,设置按钮的不可用。通过改变资源字典的值。 App.xaml 文件下添加如下 xmlns:sys="clr-namespace:System;assembly=mscorlib" <sys:Boolean x:Key="IsOnline1">true</sys:Boolean> App.x
阅读全文
posted @ 2016-03-11 17:25 莫欺
阅读(383)
评论(0)
推荐(0)
2016年3月10日
C#操作注册服务卸载服务启动服务停止服务.. .
摘要: using Microsoft.Win32; using System; using System.Collections; using System.Collections.Generic; using System.Configuration.Install; using System.Linq
阅读全文
posted @ 2016-03-10 15:37 莫欺
阅读(2136)
评论(1)
推荐(0)
2016年2月19日
ContentControl与ContentPresenter区别?
摘要: <TextBlock HorizontalAlignment="Left" Text="{Binding HwContent, Converter={StaticResource TextSerialize}}" VerticalAlignment="Top" Margin="76,26,160,0
阅读全文
posted @ 2016-02-19 12:21 莫欺
阅读(1255)
评论(0)
推荐(0)
2015年12月29日
wpf telerik中的book控件
摘要: 下载telerik中的书本控件,仅供学习使用。
阅读全文
posted @ 2015-12-29 12:18 莫欺
阅读(207)
评论(0)
推荐(0)
2015年11月30日
C#写入和读出文本文件
摘要: C#写入和读出文本文件写入文本文件 class WriteTextFile { static void Main() { //如果文件不存在,则创建;存在则覆盖 //该方法写入字符数组换行显示 str...
阅读全文
posted @ 2015-11-30 16:40 莫欺
阅读(252)
评论(0)
推荐(0)
2015年11月16日
WPF 点击Calendar后,需要点击两次按钮
摘要: 主面板上有一个Calendar控件,点击选择了日期后,如果点击确认按钮,需要点击两次。这个问题的解决方法如下: private void calendar1_PreviewMouseUp(object sender, MouseButtonEventArgs e) { if (Mouse....
阅读全文
posted @ 2015-11-16 14:05 莫欺
阅读(601)
评论(0)
推荐(0)
2015年11月13日
WPF,textBox默认是失去焦点绑定值才改变,怎么做到输入框值一改变就改变绑定值. Text="{Binding EvaluationContent,UpdateSourceTrigger=PropertyChanged}"
摘要: 如果用户提出只要textBox1的文本改变slider1的滑块立刻响应,那就设置Binding的UpdateSourceTrigger属性。它是一个UpdateSourceTrigger类型枚举值,默认值是UpdateSourceTrigger.LostFocus,所以才会在移走鼠标焦点的时候更新数...
阅读全文
posted @ 2015-11-13 11:15 莫欺
阅读(3814)
评论(0)
推荐(3)
2015年11月2日
WPF中的动画——(三)时间线(TimeLine)
摘要: WPF中的动画——(三)时间线(TimeLine)时间线(TimeLine)表示时间段。 它提供的属性可以让控制该时间段的长度、开始时间、重复次数、该时间段内时间进度的快慢等等。在WPF中内置了如下几种TimeLine:AnimationTimeline:前面已经介绍过,主要用于属性的过渡,这种是最...
阅读全文
posted @ 2015-11-02 18:08 莫欺
阅读(2001)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
13
下一页
公告