'System.Reflection.TargetInvocationException' occurred in PresentationFramework.dll

后端 未结 5 654
时光取名叫无心
时光取名叫无心 2021-02-03 21:03

Okay, I have a bit of a weird bug...

This works fine:

private void radioButtonNormalPoint_Checked(object sender, RoutedEventArgs e)
{
   //comboBoxNormal         


        
5条回答
  •  礼貌的吻别
    2021-02-03 21:37

    If the radiobutton-checked event occurs before the content of the window is loaded fully, i.e. the ellipse is loaded fully, such an exception will be thrown. So check if the UI of the window is loaded (probably by Window_ContentRendered event, etc.).

提交回复
热议问题