为什么在 Xamarin 中将最小 100 放在步进器 class 上不起作用?

Why doesn't it work to put minimum 100 on stepper class in Xamarin?

我不明白为什么我会收到这条消息。 我问过人,他说不像100, 但我还是想知道为什么。

原因可以在documents中找到:

Minimum - An integer or decimal literal. If this value is nonnegative, it must appear lexically below Maximum, so that validation can succeed.

这意味着您必须这样声明步进器:

stepper = new Stepper {
   Maximum = 200, //note that maximum is declared first.
   Minimum = 100,
   Value = 100,       
   Increment = 10
};