| 网站首页 | 业界新闻 | 群组 | 交易 | 人才 | 下载频道 | 博客 | 代码贴 | 编程论坛
共有 5281 人关注过本帖
标题:求助:设计好程序后点击Button程序没有响应
只看楼主 加入收藏
蝶翼斐斐
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-11-19
结帖率:100%
  已结贴   问题点数:20  回复次数:2   
求助:设计好程序后点击Button程序没有响应
设计一个计时器,界面设计好后,点击运行能够出现界面,但点击Button按钮程序没有反应,大虾们,帮忙看看呗,代码是下面这样滴
<Window x:Class="计时器.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="倒数计时器" Height="350" Width="525" FontFamily="MS UI Gothic">
    <Grid>
        <TextBox Height="122" HorizontalAlignment="Left" Margin="84,20,0,0" Name="textBox1" VerticalAlignment="Top" Width="312" Background="#FF343232" Foreground="#FF85DB22" TextChanged="textBox1_TextChanged" FontWeight="ExtraBlack" FontFamily="Verdana" FontStretch="Normal" TextWrapping="WrapWithOverflow" TextAlignment="Center" VerticalContentAlignment="Center" CharacterCasing="Normal" DataContext="{Binding}" Padding="4" Grid.Column="0" Grid.ColumnSpan="1" FontSize="80" />
        <Button Content="十分钟倒计时" Height="40" HorizontalAlignment="Left" Margin="62,172,0,0" Name="button1" VerticalAlignment="Top" Width="150" />
        <Button Content="五分钟倒计时" Height="40" HorizontalAlignment="Left" Margin="62,240,0,0" Name="button2" VerticalAlignment="Top" Width="150" />
        <Button Content="开始" Height="60" HorizontalAlignment="Left" Margin="226,194,0,0" Name="button3" VerticalAlignment="Top" Width="60" Click="button3_Click" />
        <Button Content="清空" Height="60" HorizontalAlignment="Left" Margin="310,194,0,0" Name="button4" VerticalAlignment="Top" Width="60" />
        <Button Content="全屏" Height="60" HorizontalAlignment="Left" Margin="404,194,0,0" Name="button5" VerticalAlignment="Top" Width="60" />
    </Grid>
</Window>
搜索更多相关主题的帖子: 界面设计  计时器  倒数  
2013-11-19 11:47
wang199302
Rank: 2
等 级:论坛游民
帖 子:2
专家分:40
注 册:2013-11-22
  得分:20 
你的代码只有button3有行为,其他的都是摆设
2013-11-24 13:14
蝶翼斐斐
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-11-19
  得分:0 
回复 2楼 wang199302
我需要怎么修改啊?
2013-11-24 23:23







关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.034578 second(s), 8 queries.
Copyright©2004-2018, BCCN.NET, All Rights Reserved