C# 将鼠标光标更改为等待图标,并防止用户单击任何控件
在我的Silverlight MVVM应用程序中,在进行web服务调用之后,我希望将光标更改为等待图标,并防止用户单击屏幕上的任何控件 目前,我已经使用忙指示器来防止点击屏幕上的任何控件C# 将鼠标光标更改为等待图标,并防止用户单击任何控件,c#,wpf,silverlight,C#,Wpf,Silverlight,在我的Silverlight MVVM应用程序中,在进行web服务调用之后,我希望将光标更改为等待图标,并防止用户单击屏幕上的任何控件 目前,我已经使用忙指示器来防止点击屏幕上的任何控件 请帮忙 禁用栅格的IshitteTvisable如果控件位于中,则可以使用该属性 Msdn: <Grid> <!-- My content --> <toolkit:BusyIndicator></toolkit:BusyIndicator> &l
请帮忙 禁用栅格的IshitteTvisable如果控件位于中,则可以使用该属性 Msdn:
<Grid>
<!-- My content -->
<toolkit:BusyIndicator></toolkit:BusyIndicator>
</Grid>
<Grid>
<toolkit:BusyIndicator>
<!-- My content -->
</toolkit:BusyIndicator>
</Grid>
当IsEnabled为false时,控件不能有焦点或接收输入
事件,例如。控件继承IsEnabled
属性从其父控件中删除。例如,如果控件
包含一个IsEnabled设置为false的按钮,该按钮的IsEnabled
属性也为false
忙碌指示器已经在使用此原理,前提是它是您的父控件:
错误:
<Grid>
<!-- My content -->
<toolkit:BusyIndicator></toolkit:BusyIndicator>
</Grid>
<Grid>
<toolkit:BusyIndicator>
<!-- My content -->
</toolkit:BusyIndicator>
</Grid>
右侧:
<Grid>
<!-- My content -->
<toolkit:BusyIndicator></toolkit:BusyIndicator>
</Grid>
<Grid>
<toolkit:BusyIndicator>
<!-- My content -->
</toolkit:BusyIndicator>
</Grid>
谢谢。。。鼠标控制是正确的,但我们无法停止键盘控制。我还想停止键盘控制。你采用的解决方案是什么?