摘要:
PassEventArgsToCommand = "true" 传递鼠标事件参数到命令 Visibility隐藏和显示转换为True or False {Binding IsQueryModel, Converter={converterExtensions:BoolToVisibilityConv 阅读全文
摘要:
PassEventArgsToCommand = "true" 传递鼠标事件参数到命令 Visibility隐藏和显示转换为True or False {Binding IsQueryModel, Converter={converterExtensions:BoolToVisibilityConv 阅读全文
摘要:
Content = {Binding xxxViewModel.View} 创建UserControl.xaml:xxxView.xaml(.cs文件中加入MEF) 创建IxxxView接口: IView 创建xxxViewModel (MEF):ActivableViewModel<IxxxVie 阅读全文
摘要:
[Languages]Name: "en"; MessagesFile: "compiler:Default.isl"; Name: "sc"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"; [CustomMessages]en. 阅读全文
摘要:
[Code] // 检查安装路径是否是英文function IsEnglishStr(file: String): Boolean;var value: Integer; len: Integer; i: Integer;begin Result := true; len := length(fil 阅读全文
摘要:
绑定到DataContext: <Button Content=“{Binding DataTime}”/> 绑定到DataContext,并设置绑定模式: <Button x:Name="btn" Content="{Binding DataTime,Mode = OneTime}"/> 绑定到D 阅读全文
摘要:
用途:用于控制一个应用程序只有一个实例运行。 举例: class Client{ private static Mutex _mutex; static void Main(){ if( ! IsStarted()){ Current.ShutDown(); return; } .... } pri 阅读全文
摘要:
DataAnnotation 特性由.NET 3.5中引进,给.NET中的类提供了一种添加验证的方式。DataAnnotation由命名空间System.ComponentModel.DataAnnotations提供。下面列举实体模型中常用的DataAnnotation特性: KeyAttribu 阅读全文
摘要:
数据库 列出所有数据库:SHOW DATABASES; 创建新数据库:CREATE DATABASE <数据库名称>; 删除数据库:DROP DATABASE <数据库名称>; 切换到当前数据库:USE <数据库名称>; 表 列出当前数据库所有表:SHOW TABLES; 查看表结构:DESC <表 阅读全文
摘要:
INSERT: INSERT INTO <表名>(字段1,字段2,...) VALUES (值1,值2,...); UPDATE: UPDATE <表名> SET 字段1=值1,字段2 = 值2,... WHERE ...; DELETE: DELETE FROM <表名> WHERE ...; 阅读全文
摘要:
基本查询 SELECT * FROM <表名>; 可以查询一个表的所有行和所有列的数据。 SELECT 1; //测试数据库连接; 条件查询 SELECT * FROM <表名> WHERE <条件表达式>; <条件表达式>: <条件1> AND <条件2> <条件1> OR <条件2> NOT < 阅读全文
|