05 2013 档案
图片切换特过渡效果
摘要:由于经常看到各种图片切换效果,感觉用到的地方挺多,整理一下,还是很有必要的,以便于以后查阅,程序主要使用Transitionals.dll来实现切换效果的,效果如下:xaml前台代码:<Window x:Class="SwitchPicture.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<!--定义了切换 阅读全文
posted @ 2013-05-14 14:17 闪闪的幸运星 阅读(1613) 评论(0) 推荐(0)
点击按钮触发声音(xaml实现)
摘要:当点击按钮时,播放按钮声音,xaml代码如下: <Button Content="播放声音" > <Button.Triggers> <EventTrigger RoutedEvent="Button.Click"> <EventTrigger.Actions> <SoundPlayerAction Source="dl.wav"></SoundPlayerAction> </EventTrigger.Actions> ... 阅读全文
posted @ 2013-05-13 17:16 闪闪的幸运星 阅读(635) 评论(0) 推荐(0)
自定义的可拖动窗体
摘要:在学习wpf过程中用过的Demo,背景透明,可以拖动,效果如下:组成部分:path对象绘制边框,label下的字符串,自定义按钮控件xaml代码:<Window x:Class="CustomWindow.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" He 阅读全文
posted @ 2013-05-13 15:08 闪闪的幸运星 阅读(440) 评论(0) 推荐(1)
定时器写的闪光字
摘要:曾经研究wpf时写的闪光字,翻了出来,没太多技术含量,直接贴代码吧:xaml文件:<Window x:Class="Sparkling.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="52 阅读全文
posted @ 2013-05-13 13:22 闪闪的幸运星 阅读(395) 评论(0) 推荐(0)
在博客添加时钟
摘要:今天刚开通了博客,在侧边栏添加了一个时钟,顺便把方法与大家分享一下:首先在我的博客,点击【管理】,选择【设置】:在 博客侧边栏公告(支持HTML代码)下,<embed height="200" type="application/x-shockwave-flash" width="200" src="http://www.blogclock.cn/swf/S1000746cf11489-9.swf" wmode="transparent" quality="high"& 阅读全文
posted @ 2013-05-13 11:11 闪闪的幸运星 阅读(233) 评论(0) 推荐(0)