新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
探討WPF按鈕實(shí)現(xiàn)特殊效果
WPF開發(fā)工具可以幫助我們實(shí)現(xiàn)各種基于圖形界面顯示的需求。比如小到一個(gè)按鈕外觀的修改,大到一整個(gè)界面的修改等。WPF按鈕實(shí)現(xiàn)了當(dāng)移近WPF按鈕的時(shí)候,按鈕顯現(xiàn)外發(fā)光的特效,用WPF實(shí)現(xiàn)比較容易。 #t#

目前成都創(chuàng)新互聯(lián)公司已為超過千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)頁空間、網(wǎng)站托管、服務(wù)器租用、企業(yè)網(wǎng)站設(shè)計(jì)、古冶網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。
WPF按鈕實(shí)現(xiàn)效果Xml代碼
- < Window.Resources>
- < Style TargetType="{x:Type Button}">
- < Style.Triggers>
- < Trigger Property="IsMouseOver"
Value="True"> - < !--Setter Property="Background"
Value="Orange">< /Setter--> - < Setter Property="BitmapEffect">
- < Setter.Value>
- < OuterGlowBitmapEffect GlowSize=
"20" Noise=".3" GlowColor="Red">
< /OuterGlowBitmapEffect> - < /Setter.Value>
- < /Setter>
- < /Trigger>
- < /Style.Triggers>
- < /Style>
- < /Window.Resources>
- < Grid x:Name="LayoutRoot">
- < Button x:Name="button" Margin=
"200,160,240,182" Content="Button"
MouseEnter="button_MouseEnter"> - < /Button>
- < /Grid>
上面這段代碼就是WPF按鈕實(shí)行外發(fā)光效果的具體方法。
文章題目:探討WPF按鈕實(shí)現(xiàn)特殊效果
網(wǎng)站鏈接:http://m.5511xx.com/article/dhojsce.html


咨詢
建站咨詢
