手把手教你 用 wpf 制作metro ProgressRing (Windows8 等待动画)
摘要:效果图:还在羡慕metro的ProgressRing吗?wpf 也可以拥有首先说下思路,一共6个点围绕一直圆转,所以需要使用rotation动画 并且一直转下去。那么下面的问题就好解决了。首先是xaml 部分我们需要实现旋转动画:所以要用到这个:<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Ellipse.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"> <LinearDoubleKe...
阅读全文
wpf+.net 4.5 surface2.0 = 异步多点触控 时间轴 part7
摘要:本开源项目svn 地址 如需加入开发或者有其他疑问请在博客留言svn://www.oksvn.com/Timeline/Win8 metro开发者联盟群号:195314253欢迎win8开发者 或对win8 开发感兴趣的 有志之士加入
阅读全文
wpf+.net 4.5 surface2.0 = 异步多点触控 时间轴 part6
摘要:最后是工具类用于扩展lambda 污染循环using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Data;
using System.Threading; namespace Transvalue.Timeline
{ public static class Pollute { public static int ToInt32(this string Value) ...
阅读全文
wpf+.net 4.5 surface2.0 = 异步多点触控 时间轴 part5
摘要:可使用多种方式将事件(UserControl 或Window或其他UIElement)内容呈现 以下是2个例子:视频方式:<UserControl xmlns:s="http://schemas.microsoft.com/surface/2008" x:Class="Transvalue.Timeline.EventVideoControlItem" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sc
阅读全文
wpf+.net 4.5 surface2.0 = 异步多点触控 时间轴 part4
摘要:然后是一些杂七杂八的 枚举类啊 模型啊什么的。事件项xaml:<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schema...
阅读全文
wpf+.net 4.5 surface2.0 = 异步多点触控 时间轴 part3
摘要:坐标轴xaml:<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft....
阅读全文
wpf+.net 4.5 surface2.0 = 异步多点触控 时间轴 part2
摘要:先来张效果图,然后继续贴轴控件xaml :<UserControl 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" xmlns:d="http://schemas.microsoft.com/expression/blend/
阅读全文
wpf+.net 4.5 surface2.0 = 异步多点触控 时间轴 part1
摘要:直接贴代码 废话不多说了。运行环境 vs11 beta framework4.5surface runtime surface sdk 2.0多点触控模拟器 multitouchVista 或多点触控设备源码请关注我的资源下载功能说明: 多点触控时间轴,事件可缩放 旋转 多点同时操作 放大缩小等,时间范围0001-9980年 定位精确到天 时间轴数据加载格式如下:<?xml version="1.0" encoding="utf-8" ?><data> <event imgUrl="Sample_Photos&qu
阅读全文
图片循环播放器。WPF制作 以下为代码
摘要:using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Syst
阅读全文
自定义事件和参数。详细版。。。
摘要:using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Syst
阅读全文
WPF 悬浮键盘
摘要:public class TouchScreenKeyboard : Window { #region Property & Variable & Constructor private static double _WidthTouchKeyboard = 830; public static double WidthTouchKeyboard { get { return _WidthTouchKeyboard; } set { _WidthTouchKeyboa...
阅读全文
近期项目作品展示 WPF 制作客户端
摘要:WPF制作:果图如下。以上为部分效果图。。后期将把程序demo上传 请关注我的blog
阅读全文
WPF 模板中的控件修改
摘要:模板:<ControlTemplate x:Key="HomeBtnNewTemplate" TargetType="{x:Type Button}"> <Grid Width="{TemplateBinding Width}" Background="{TemplateBinding Background}" Height="{TemplateBinding Height}" ClipToBounds="True"> <Rectangle x:
阅读全文
透明BUTTON 模板 WPF
摘要:<ControlTemplate x:Key="NavTemp" TargetType="{x:Type Button}"> <Grid Width="{TemplateBinding Width}" Background="{TemplateBinding Background}" Height="80" ClipToBounds="True"> <Label Content="{TemplateBinding Content}&qu
阅读全文