摘要: DataGrid应用 1.数据绑定 2.DataGrid的增改删功能 3.DataGrid的分页实现 4.DataGrid的样式设计 先上一张截图,让你大概知道自己需要的功能是否在这张图里有所实现。 1.数据绑定 2.DataGrid的增改删功能 3.DataGrid的分页实现 4.DataGrid 阅读全文
posted @ 2016-10-24 11:00 pengde 阅读(221) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Wind 阅读全文
posted @ 2016-10-21 18:22 pengde 阅读(515) 评论(0) 推荐(0)
摘要: 一. python打开文件代码如下: 说明:第一个参数是文件名称,包括路径;第二个参数是打开的模式mode ‘r’:只读(缺省。如果文件不存在,则抛出错误)‘w’:只写(如果文件不存在,则自动创建文件)‘a’:附加到文件末尾‘r+’:读写 如果需要以二进制方式打开文件,需要在mode后面加上字符”b 阅读全文
posted @ 2016-10-17 11:34 pengde 阅读(164) 评论(0) 推荐(0)
摘要: List是python中的基本数据结构之一,和Java中的ArrayList有些类似,支持动态的元素的增加。list还支持不同类型的元素在一个列表中,List is an Object。 最基本的创建一个列表的方法 复制代码代码如下: myList = ['a','b','c'] Python li 阅读全文
posted @ 2016-09-13 18:20 pengde 阅读(155) 评论(0) 推荐(0)
摘要: http://abowman.com/google-modules/ball-clock/ 阅读全文
posted @ 2016-09-13 17:20 pengde 阅读(196) 评论(0) 推荐(0)
摘要: private ChildType FindVisualChild<ChildType>(DependencyObject obj) where ChildType : DependencyObject { for (int i = 0; i < VisualTreeHelper.GetChildr 阅读全文
posted @ 2016-09-13 09:50 pengde 阅读(848) 评论(0) 推荐(0)
摘要: <ListView x:Name="listView_Date" Grid.Row="3" BorderBrush="{x:Null}"> <ListView.Resources> <Style TargetType="{x:Type ListViewItem}"> <Style.Triggers> 阅读全文
posted @ 2016-09-12 17:24 pengde 阅读(576) 评论(0) 推荐(0)
摘要: 1)忘记在 if , elif , else , for , while , class ,def 声明末尾添加 :(导致 “SyntaxError :invalid syntax”) 该错误将发生在类似如下代码中: ? 1 2 if spam == 42 print('Hello!') ? 1 2 阅读全文
posted @ 2016-09-12 14:11 pengde 阅读(100) 评论(0) 推荐(0)
摘要: <Style.Triggers> <Trigger Property="ListBox.AlternationIndex" Value="1"> <Setter Property="Background" Value="AliceBlue"/> </Trigger> </Style.Triggers 阅读全文
posted @ 2016-09-12 10:36 pengde 阅读(234) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or 阅读全文
posted @ 2016-09-02 10:41 pengde 阅读(186) 评论(0) 推荐(0)