WPF提示框效果

摘要: WPF提示框效果 1,新建WPF应用程序 2,添加用户控件Message 3,在Message中编写如下代码 <Border x:Name="border" BorderThickness="3" Width="400" Height="60" CornerRadius="30" BorderBru 阅读全文
posted @ 2015-11-30 15:15 大Z 阅读(4248) 评论(2) 推荐(0) 编辑

WPF DataGrid 行头小三角

摘要: ... 阅读全文
posted @ 2014-03-15 21:58 大Z 阅读(1474) 评论(0) 推荐(0) 编辑

WPF 进度条

摘要: WPF Progressbar 进度条 阅读全文
posted @ 2014-02-24 00:13 大Z 阅读(563) 评论(0) 推荐(0) 编辑

WPF 保存文件

摘要: private void button2_Click(object sender, RoutedEventArgs e) { var saveFileDialog1 = new SaveFileDialog { Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif", Title = "Save File" }; saveFileDialog1.ShowDialog... 阅读全文
posted @ 2014-02-24 00:09 大Z 阅读(2355) 评论(0) 推荐(0) 编辑

R 语言DataFrame 排序

摘要: Sort:dd ()){ Console.WriteLine(row.Species);} 阅读全文
posted @ 2014-02-18 22:20 大Z 阅读(7501) 评论(0) 推荐(0) 编辑

R.Net 用法

摘要: using (REngine engine = REngine.CreateInstance("RDotNet")) { engine.Initialize(); var expandGrid = engine.Evaluate("function(x, y) { expand.grid(x=x, y=y) }").AsFunction(); var v1 = engine.CreateIntegerVector(new[] {1, 2, 3}); ... 阅读全文
posted @ 2014-01-25 17:50 大Z 阅读(680) 评论(0) 推荐(0) 编辑

WPF AutoGeneratingColumn 绑定下拉框

摘要: WPF自动产生列,前台代码: { "Age", "gender", "ID", "Name","Country" }; var column = new DataGridTemplateColumn { Header = e.PropertyName }; var dataTemplate = new DataTemplate(); var fef = new FrameworkElementFactory(typeof(ComboBox)); var binding = new Binding 阅读全文
posted @ 2014-01-22 22:11 大Z 阅读(847) 评论(0) 推荐(0) 编辑

C# Delegate 异步调用

摘要: namespace ConsoleApplication22{ /// /// 异步操作 /// /// /// /// //internal Func int MainRun(int data, int sleep); internal class Program { private static void Main(string[] args) { Func mainRun = TakeAWhile; var ar = mainRun.BeginInvoke(1, 100, null, n... 阅读全文
posted @ 2013-12-22 19:42 大Z 阅读(573) 评论(0) 推荐(0) 编辑

WinForm TreeView 三种状态

摘要: private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { var node = e.Node; if (node == null) return; //根据父节点状态,全选或全消子节点 node.StateImageIndex = node.StateImageIndex == 1 ? 0 : 1; UpdateSubNodeCheckStatus(node)... 阅读全文
posted @ 2013-11-11 07:27 大Z 阅读(1144) 评论(0) 推荐(0) 编辑