winfwu

导航

02 2013 档案

WPF DispatcherTimer(定时器应用) 无人触摸60s自动关闭窗口
摘要:如果无人触摸:60s自动关闭窗口xmal:部分<s:SurfaceWindow x:Class="SurfaceApplication1.SurfaceWindow1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008" 阅读全文

posted @ 2013-02-26 13:57 winfwu 阅读(1897) 评论(1) 推荐(0)

WPF 加载exe执行文件
摘要:System.Diagnostics.Process.Start(@"文件绝对路径"); 阅读全文

posted @ 2013-02-25 18:18 winfwu 阅读(321) 评论(0) 推荐(0)

WPF SurfaceListBox SelectionChanged事件分析
摘要:图片预览:xmal代码区:<s:SurfaceWindow x:Class="Qv2._0.SurfaceWindow1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008" Title="Qv2._0&quo 阅读全文

posted @ 2013-02-25 17:15 winfwu 阅读(952) 评论(0) 推荐(0)

WPF LibraryBar去背景色
摘要:图片预览:<s:SurfaceWindow x:Class="SurfaceApplication2.SurfaceWindow1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="http://schemas.microsoft.com/surface/2008" Title="Surfa 阅读全文

posted @ 2013-02-20 15:10 winfwu 阅读(375) 评论(0) 推荐(0)

WPF SurfaceListbox 循环事件
摘要:截图:(1)生成项目打开vs2010,创建一个surface Application工程。进入ContinuousList作为项目名称在SurfaceWindow1.xaml文件,添加一个数据绑定SurfaceListBox控制网格控件模板的一部分。为SurfaceListBox创建一个模板(Template)。当您完成操作之后,SurfaceWindow1.xaml文件的应用程序应该包含以下代码。<s:SurfaceWindow x:Class="ContinuousList.SurfaceWindow1" xmlns="http://schemas.mi 阅读全文

posted @ 2013-02-20 11:23 winfwu 阅读(828) 评论(1) 推荐(0)

WPF Style设置的二种方法
摘要:效果如下:案例一描述:TargetType 设置所有TextBlock样式 <s:SurfaceWindow.Resources> <Style TargetType="{x:Type TextBlock}"> <Setter Property="FontFamily" Value="Segoe Black" /> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter 阅读全文

posted @ 2013-02-18 16:40 winfwu 阅读(2365) 评论(0) 推荐(0)

WPF DataTemplate 应用之一(初级Window.Resources应用)
摘要:效果图:<Window.Resources> <DataTemplate x:Key="myTaskTemplate"> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock Text="c# " Width="80" Background="Red"/> <TextBlock Text="Java &quo 阅读全文

posted @ 2013-02-18 15:23 winfwu 阅读(523) 评论(0) 推荐(1)

WPF SurfaceListbox拖拽事件 之一(SurfaceListbox To SurfaceListbox篇)
摘要:效果图:(1) DataItem类的用于创建项目SurfaceListBox控制。它有两个属性:Name:Item名CanDrop: 指定的项目是否可以删除目标控制public class DataItem { private string name; private bool canDrop; public string Name { get { return name; } } public bool CanDrop { get { return canDrop; } } public DataItem(string name, bool canDrop) { this.name = na 阅读全文

posted @ 2013-02-18 13:55 winfwu 阅读(1256) 评论(0) 推荐(0)