摘要: --> --> 阅读全文
posted @ 2015-06-18 19:34 长白山 阅读(304) 评论(0) 推荐(0)
摘要: Header="{BindingPath=Command.Text,RelativeSource={RelativeSourceSelf}}"/> 阅读全文
posted @ 2015-06-18 11:24 长白山 阅读(239) 评论(0) 推荐(0)
摘要: WPF窗体的命令绑定方法一:使用代码 #region Command private void HelpCanExecute(object sender, CanExecuteRoutedEventArgs e) ... 阅读全文
posted @ 2015-06-18 10:53 长白山 阅读(914) 评论(0) 推荐(0)
摘要: 在C#中,ref的意思是按引用传递。可以参考C++:view plaincopy to clipboardprint?inta=10,b=20; voidswap(intx,inty) { inttemp=x; x=y; y=temp; }如果简单的调用这个swap,比如:swap(a, b),那么... 阅读全文
posted @ 2015-06-18 10:10 长白山 阅读(738) 评论(0) 推荐(0)