摘要: 1、添加MarkupExtension 2、绑定 阅读全文
posted @ 2018-04-04 10:48 akiing 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 这个是用附加属性时,一定要在属性前面加Path= 阅读全文
posted @ 2018-03-19 16:09 akiing 阅读(99) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { Thread thread = new Thread(Work); thread.Start(); Console.ReadLine(); Pause(); ... 阅读全文
posted @ 2018-01-30 10:12 akiing 阅读(295) 评论(0) 推荐(0) 编辑
摘要: SystemEvents.PowerModeChanged += SystemEvents_PowerModeChanged; private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e) { switch (e.Mode) ... 阅读全文
posted @ 2017-10-30 17:18 akiing 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: public static class DataTableExtensions { public static IList ToList(this DataTable table) where T : new() { IList properties = typeof(T).GetProperties().ToList(); IList result = ne... 阅读全文
posted @ 2017-09-28 17:35 akiing 阅读(769) 评论(0) 推荐(0) 编辑
摘要: 如果DispatherTimer 的Interval 不是在实例化时赋值,那么Start之后,Tick方法会立即执行一次。 应该这样初始化: 阅读全文
posted @ 2017-09-25 14:50 akiing 阅读(3969) 评论(0) 推荐(0) 编辑
摘要: 项目属性--生成事件 添加命令 xcopy /y /d "$(SolutionDir)Dll\Linphone\*.dll" "$(TargetDir)\Linphone\"xcopy "$(ProjectDir)\Assets" "$(TargetDir)\Assets\" /S /Y 阅读全文
posted @ 2017-09-22 11:33 akiing 阅读(1418) 评论(0) 推荐(0) 编辑
摘要: 如果直接放在项目运行目录,例如bin/debug可以直接加载,但是这样比较乱。 如果在放debug里面的一个文件夹里面,有可能会报错“无法加载xxx.dll 找不到指定的模块”。 如果路径写成这样就会报错 framework/linphone 解决方法:将/ 改成"\" framework\linp 阅读全文
posted @ 2017-09-20 10:38 akiing 阅读(4889) 评论(0) 推荐(0) 编辑
摘要: 问题原因,EF当前版本没有该方法,将EF版本升级即可。 1、packages.config <package id="EntityFramework" version="6.1.3" targetFramework="net40" /> 2、app.config <configSections> < 阅读全文
posted @ 2017-09-14 16:54 akiing 阅读(670) 评论(0) 推荐(0) 编辑
摘要: /// /// App.xaml 的交互逻辑 /// public partial class App : Application { private const string Tag = nameof(App); public App() { Dispatcher.UnhandledE... 阅读全文
posted @ 2017-09-14 09:50 akiing 阅读(924) 评论(0) 推荐(0) 编辑