【问题标题】:Make a button flash in Windows Phone 7在 Windows Phone 7 中制作按钮闪烁
【发布时间】:2012-10-02 17:06:28
【问题描述】:

您好,在我的应用程序中,我希望我的按钮闪烁片刻,以提示按哪个按钮按哪个顺序。任何人都知道如何做到这一点,我在想也许隐藏按钮然后暂停一段时间然后再次启用它,但不确定这是一个好主意。

private void display_combination()
    {
        for (int i = 0; i < MAX_INPUT; i++)
        {
            switch(combination[i])
            {
                case 0: button_flash(this.Up_Button); break;
                case 1: button_flash(this.Down_Button); break;
                case 2: button_flash(this.Left_Button); break;
                case 3: button_flash(this.Right_Button); break;                    
            }
        }
    }

void button_flash(Button b)
    {
        b.IsEnabled.Equals(0);
        //perhaps a pause her and then enable the button again?

    }

【问题讨论】:

    标签: c# windows-phone-7 xaml button


    【解决方案1】:

    最好的方法是使用故事板在完成时切换目标。这里有一些资源可以帮助您开始:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多