Xamarin Form Slider无法正常工作

时间:2016-03-09 10:11:03

标签: visual-studio slider xamarin.forms

我有这个滑块绑定

<Slider Minimum="0" Maximum="60" Value="{Binding Path=VarName, Mode=TwoWay}" Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="4" x:Name="sldVarName" />

如果我点击滑块,应用程序冻结,在VS输出窗口中,我会看到以下数据:

  

03-08 19:45:43.980 D / ProgressBar(15096):setProgress = 279,fromUser = false   03-08 19:45:43.980 D / ProgressBar(15096):mProgress = 287mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:43.980 D / ProgressBar(15096):setProgress = 272   03-08 19:45:43.985 D / ProgressBar(15096):setProgress = 272,fromUser = false   03-08 19:45:43.985 D / ProgressBar(15096):mProgress = 279mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:43.990 D / ProgressBar(15096):setProgress = 273   03-08 19:45:43.990 D / ProgressBar(15096):setProgress = 273,fromUser = false   03-08 19:45:43.990 D / ProgressBar(15096):mProgress = 272mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:43.990 D / ProgressBar(15096):setProgress = 265   03-08 19:45:43.990 D / ProgressBar(15096):setProgress = 265,fromUser = false   03-08 19:45:43.990 D / ProgressBar(15096):mProgress = 273mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:43.990 D / ProgressBar(15096):setProgress = 258   03-08 19:45:43.990 D / ProgressBar(15096):setProgress = 258,fromUser = false   03-08 19:45:43.990 D / ProgressBar(15096):mProgress = 265mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:43.995 D / ProgressBar(15096):setProgress = 259   03-08 19:45:43.995 D / ProgressBar(15096):setProgress = 259,fromUser = false   03-08 19:45:43.995 D / ProgressBar(15096):mProgress = 258mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:44.000 D / ProgressBar(15096):setProgress = 273   03-08 19:45:44.000 D / ProgressBar(15096):setProgress = 273,fromUser = false   03-08 19:45:44.000 D / ProgressBar(15096):mProgress = 259mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:44.000 D / ProgressBar(15096):setProgress = 259   03-08 19:45:44.000 D / ProgressBar(15096):setProgress = 259,fromUser = false   03-08 19:45:44.000 D / ProgressBar(15096):mProgress = 273mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:44.000 D / ProgressBar(15096):setProgress = 259   03-08 19:45:44.000 D / ProgressBar(15096):setProgress = 259,fromUser = false   03-08 19:45:44.000 D / ProgressBar(15096):mProgress = 259mIndeterminate = false,mMin = 0,mMax = 1000   03-08 19:45:44.005 D / ProgressBar(15096):setProgress = 259   03-08 19:45:44.005 D / ProgressBar(15096):setProgress = 259,fromUser = false   03-08 19:45:44.005 D / ProgressBar(15096):mProgress = 259mIndeterminate = false,mMin = 0,mMax = 1000

如果我设置为60,调试器为什么显示max = 1000? 应用程序为什么会冻结?

先谢谢。

0 个答案:

没有答案