首页 新闻 会员 周边

win8 贴靠视图 样式失效

0
悬赏园豆:20 [已关闭问题] 关闭于 2013-01-08 17:23

 这是按钮的代码 <Button Content="登     录" x:Name="btnlogin" Margin="549,183,0,388" Grid.Row="1" Width="230" FontSize="18" Height="57" Click="Button_Click_1"></Button>

这是贴靠视图的定义 

<ObjectAnimationUsingKeyFrames Storyboard.TargetName="btnlogin" Storyboard.TargetProperty="Style">
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource testTextStyle}"/>
</ObjectAnimationUsingKeyFrames>

这是样式testTextStyle

<Style x:Key="testTextStyle" TargetType="Button">
<Setter Property="Margin" Value="36,0,36,36"/>
<Setter Property="FontSize" Value="30"/>
</Style>

为什么没效果啊 真郁闷 麻烦会的指点指点

Ganler1988的主页 Ganler1988 | 初学一级 | 园豆:3
提问于:2013-01-07 12:20
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册