WPF Getting Control null reference during InitializeComponent

前端 未结 6 2095
-上瘾入骨i
-上瘾入骨i 2021-02-05 10:13

So my InitializeComponent method call in the Window\'s constructor is running through the XML and adding the controls and plugging them into their events.

6条回答
  •  无人及你
    2021-02-05 10:26

    I had the same issue and i think it's a bug. I found a workaround though : I removed the 'Ischecked' from Xaml and set it in the code behind after the init

提交回复
热议问题