我不明白为什么我会收到这条消息。 我问过人,他说不像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
};
关于c# - 为什么在 Xamarin 中将最小 100 放在步进器类上不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36464771/