摘要:如果无人触摸: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"
阅读全文
摘要:System.Diagnostics.Process.Start(@"文件绝对路径");
阅读全文
摘要:图片预览: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
阅读全文
摘要:图片预览:<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
阅读全文
摘要:截图:(1)生成项目打开vs2010,创建一个surface Application工程。进入ContinuousList作为项目名称在SurfaceWindow1.xaml文件,添加一个数据绑定SurfaceListBox控制网格控件模板的一部分。为SurfaceListBox创建一个模板(Template)。当您完成操作之后,SurfaceWindow1.xaml文件的应用程序应该包含以下代码。<s:SurfaceWindow x:Class="ContinuousList.SurfaceWindow1" xmlns="http://schemas.mi
阅读全文
摘要:效果如下:案例一描述:TargetType 设置所有TextBlock样式 <s:SurfaceWindow.Resources> <Style TargetType="{x:Type TextBlock}"> <Setter Property="FontFamily" Value="Segoe Black" /> <Setter Property="HorizontalAlignment" Value="Center" /> <Setter
阅读全文
摘要:效果图:<Window.Resources> <DataTemplate x:Key="myTaskTemplate"> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock Text="c# " Width="80" Background="Red"/> <TextBlock Text="Java &quo
阅读全文
摘要:效果图:(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
阅读全文