码迷,mamicode.com
首页 >  
搜索关键字:wpf trigger    ( 7593个结果
WPF捕捉Windows关机事件
1 private const int SC_SCREENSAVE = 0xF140;2 private const int WM_QUERYENDSESSION = 0x0011;3 private bool IsScreenSave = false;4 ...
分类:Windows程序   时间:2014-06-27 20:29:33    阅读次数:564
WPF 显示gif
1 using System; 2 using System.IO; 3 using System.Collections.Generic; 4 using System.Windows; 5 using System.Windows.Controls; 6 using System....
分类:其他好文   时间:2014-06-27 19:57:12    阅读次数:232
WPF 任务栏图标闪烁提醒
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Runtime.InteropServices; 5 using System.Text; 6 using S...
分类:其他好文   时间:2014-06-27 19:55:57    阅读次数:367
WPF 动态布局Grid
1 //开启线程加载 2 Action a = () => 3 { 4 var row = 7; 5 var column = 9; 6 7 var p...
分类:其他好文   时间:2014-06-27 19:39:49    阅读次数:158
[WPF] 将普通的Library工程,改造成WPF Custom Control 的Library
1. 添加References PresentationCore PresentationFramework System.Xaml WindowsBase2. 修改AssemblyInfo.xsusing System.Windows;[assembly: System.Windows...
分类:其他好文   时间:2014-06-26 19:09:55    阅读次数:139
wpf学习(二)
1.命名空间xmlnsxmlns:x其只是MS的一个命名而已,没有任何特殊的意义xmlns:local="clr-namespace:myNamespace" --每个XAML元素都是一个CLR类型,通过自定义的命名空间,可以使用命名空间里的类xmlns:sys="clr-namespace:Sys...
分类:其他好文   时间:2014-06-26 18:49:56    阅读次数:189
wpf样式绑定 行为绑定 事件关联 路由事件实例
代码说明:我要实现一个这样的功能有三个window窗口每个窗体有一个label标签当我修改三个label标签中任意一个字体颜色的时候其他的label标签字体颜色也变化首先三个窗体不用贴代码了直接添加三个就行了样式绑定:先添加数据源代码如下:(注:为了防止propertyName硬编码写死可以使用Ca...
分类:其他好文   时间:2014-06-26 18:26:47    阅读次数:229
WPF 根据绑定值设置DataGrid行背景色
实现这个功能可以使用类型转换器1建立一个类BGConverter.cs该类需要继承IValueConverter接口,并实现接口的Convert与ConvertBack方法。注意在Class上需要加上一句话,[ValueConversion(typeof(int),typeof(Brushes))]...
分类:其他好文   时间:2014-06-26 16:49:46    阅读次数:326
Mantis 1.1.0 报告问题中设置必填项或取消必填项[Z]
打开/mantis/core/bug_api.php,其中有类似下面的语句if ( is_blank( $c_summary ) ) { error_parameters( lang_get( 'summary' ) ); trigger_error( ERROR_EMPTY_FIELD, ERRO...
分类:其他好文   时间:2014-06-26 12:39:03    阅读次数:215
MySQL用户权限导致的创建Trigger失败
说来惭愧,MySQL一直处于只会用,不怎么理解的阶段。甚至是一些较为深层次的管理,都不怎么熟悉,得加强啊!近日,系统测试,使用MySQL数据库,需要在某个表上创建触发器,数据库是在本机安装。但是,无论如何都无法创建触发器,后台错误信息如下:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: TRIGGER command denie...
分类:数据库   时间:2014-06-26 07:11:40    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!