Silverlight: Value does not fall within the expected range exception

前端 未结 4 668
臣服心动
臣服心动 2020-12-19 09:35

I am getting \"Value does not fall within the expected range exception\" when adding children to stack panel. This happens even when myStackPanel.Children.Count = 0 just be

4条回答
  •  清歌不尽
    2020-12-19 10:27

    Double check the stack trace. Sometimes the line number is off but it's possible that the exception is occurring in the setter for the Name property. It must follow the normal rules for an identifier.

提交回复
热议问题