共 14 篇文章 |
|
﹤resultMap id="account-hashtable-result" class="Hashtable"﹥ ﹤result property="Id" column="Account_ID"/﹥ ﹤result property="FirstName" column="Account_FirstName"/﹥ ﹤result property="LastName" column="Account... 阅172 转0 评0 公众公开 12-07-27 11:33 |
使用之前要using System.Management; string buffer; ManagementObjectSearcher searcher; searcher = new ManagementObjectSearcher( "root\\CIMV2 ", "SELECT PartComponent FROM Win32_SystemOperatingSystem ");foreach (ManagementObject queryObj in searcher.searcher = new ManagementObjectSear... 阅675 转1 评0 公众公开 12-07-13 14:15 |
因为许多的服务器特别是廉价的服务器上使用的是Framework的v2.0.50727。现在的代码越来越Query风格了。把附件的包给解压出来,点击附件里的“取得权限.reg”,找到目录C:\Windows\Microsoft.NET\Framework\v2.0.50727,然后右键菜单上就有了“取得权限更改",点击它。然后把附件下v3.5.rar解压出来,把v3.5里的文件复制替换到v2.0.50727。... 阅65 转0 评0 公众公开 12-05-22 18:40 |
public partial class Form1 : Form { private delegate void FlushClient();//代理 public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Thread thread = new Thread(CrossThreadFlush); thread.IsBackground ... 阅57 转0 评0 公众公开 12-05-09 14:07 |
在WPF中数据绑定一个ListBox到一个列举物品并不是那么容易.<Window.Resources> <local:GreekGods x:Key="greekGods"/><DataTemplate x:Key="itemTemplate"> <TextBlock Text="{Binding Path=Name}" /> </DataTemplate></Window.Resources> 阅1387 转4 评0 公众公开 12-04-09 00:22 |
滚动条的基本构成。有了这些,就可以定义自己的滚动条了。<Style TargetType="{x:Type ScrollBar}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ScrollBar}"> <StackPanel> <! 阅994 转11 评0 公众公开 12-03-19 23:57 |
Adding buttons to databound listbox items in ...new User() { Name = “Tim”, Age = 30 },new User() { Name = “Marc”, Age = 48 },new User() { Name = “Ann”, Age = 39 },new User() { Name = “Jan”, Age = 25 },new User() { Name = “Marie”, Age = 69 }};Back in our code-behind we now only have to change the datacontext ... 阅54 转0 评0 公众公开 12-03-19 21:35 |
CSDN上有人问,怎么用WPF实现一个包含Image控件的Grid容器,在鼠标移入Image控件的时候,改变Grid的高度,而当鼠标移出Image的时候,Grid的高度恢复。TargetProperty="Height" From="200" To="250" Duration="0:0:5"></DoubleAnimation> </Storyboard&g... 阅336 转3 评0 公众公开 12-03-16 10:19 |
VS2005运行时读写配置文件(.config)VS2005运行时读写配置文件(.config)在VS 2005中设置和读取配置文件已经变的很简单了,而且是强类型的,读取的值可以直接赋值给相应的变量,无需强制转换。4. 保存 Application 范围配置文件(保存 Application 范围的应用程序设置) 保存 Application 范围配置文件可没有保存 User 范围配置文件那样简... 阅220 转0 评0 公众公开 12-03-14 00:05 |
继续聊WPF——BulletDecorator控件继续聊WPF——BulletDecorator控件 分类: 个人文章2011-11-13 11:58311人阅读评论(0)收藏举报 这是一个很简单的控件,无非就是控制项目的布局方式,其布局方式只有两种:从左到右,从右到左。Child> <Label FontSize="12" Height="24.276" Width="100.674" Flo... 阅137 转1 评0 公众公开 12-03-09 21:47 |