忙碌指示器使用户控件显示为禁用 [英] Busy Indicators making the user controls to appear disabled

查看:63
本文介绍了忙碌指示器使用户控件显示为禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我们正在使用silverlight工具包中的繁忙指标。问题是即使忙指示停止后,用户控件如组合框似乎被禁用,但当我们将鼠标悬停在它上面时,它变得正常。请尽快为此问题提出任何解决方案。

We are using busy indicators from silverlight toolkit. The issue is even after the busy indicator stops, the user controls like combo box appear to be disabled but when we hover over it becomes normal. Kindly suggest any solution for this issue ASAP.

谢谢,

Kasinath

推荐答案

您好Kasinath,

Hi Kasinath,

您能否分享一些关于如何在Silverlight中使用繁忙指示器控件的代码片段帮助我们重现这个问题的应用程序?

Could you share some code snippet about how do you use busy indicator control in your Silverlight application to help us reproduce this issue?

以下是关于如何在Silverlight应用程序中使用繁忙指示器控件的示例。忙指示停止后,将出现ComboBox控件,并始终显示为已启用。我不需要将鼠标悬停在它上面来启用它。

Following is my sample about how to use the busy indicator control in my Silverlight application. After busy indicator stops, the ComboBox control appear and it always shows as enabled. I don't need to hover over it to enable it.

<toolkit:BusyIndicator Name="busyIndicator" HorizontalAlignment="Left" Margin="76,85,0,0" VerticalAlignment="Top">
     <ComboBox x:Name="comboBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120">
           <ComboBox.Items>
                <ComboBoxItem Content="AAAA"/>
                <ComboBoxItem Content="BBBB"/>
           </ComboBox.Items>
      </ComboBox>
</toolkit:BusyIndicator>


 public MainPage()
 {
      InitializeComponent();

      busyIndicator.IsBusy = true;

      ThreadPool.QueueUserWorkItem((state) =>
      {
           Thread.Sleep(3 * 1000);
           Dispatcher.BeginInvoke(() => busyIndicator.IsBusy = false);
      });

  }

请检查您的应用程序中是否有某些代码禁用您的ComboBox并通过鼠标悬停首先启用它。

Please check whether there some code in your application disable your ComboBox and enable it through mouse hover over first.

然后请检查您的Silverlight,Silverlight Toolkit版本以及您正在使用的浏览器。我正在使用Silverlight 5(5.1.50901.0)和

Silverlight_5_Toolkit_December_2011.msi
  ;,浏览器版本为IE 11(11.576.14393.0)。

Then please check your Silverlight, Silverlight Toolkit version and which browser you are using. I'm using Silverlight 5 (5.1.50901.0) and Silverlight_5_Toolkit_December_2011.msi , the browser version is IE 11 (11.576.14393.0).

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于忙碌指示器使用户控件显示为禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆