2013年5月13日
摘要: 当点击按钮时,播放按钮声音,xaml代码如下: <Button Content="播放声音" > <Button.Triggers> <EventTrigger RoutedEvent="Button.Click"> <EventTrigger.Actions> <SoundPlayerAction Source="dl.wav"></SoundPlayerAction> </EventTrigger.Actions> ... 阅读全文
posted @ 2013-05-13 17:16 闪闪的幸运星 阅读(586) 评论(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 闪闪的幸运星 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 曾经研究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 闪闪的幸运星 阅读(376) 评论(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 闪闪的幸运星 阅读(212) 评论(0) 推荐(0) 编辑