我需要从 Silverlight 中的代码中预先填充一个组合框,其值介于 1-10 之间,默认情况下所选值应为 3。我该怎么办?
private int _Rounds=3;
[RequiredField]
[MultipleChoice]
public int Rounds
{
get { return this._Rounds; }
set
{
if (this._Rounds != value)
{
this.ValidateProperty("Rounds", value);
this._Rounds = value;
this.RaisePropertyChanged("Rounds");
}
}
}