无法在WPF窗口加载上触发用户定义的功能

时间:2017-04-13 13:29:24

标签: c# sql-server wpf user-interface

我在WPF中发现这个问题很难。

我动态填充此WPF表单上的保管箱(来自SQL Server中的表格)。我编写了一个名为populateDropBoxes的函数,我曾在form_Load WinForms调用WPF

现在在Constructor我得到以下错误
enter image description here

我还在Window_Loaded / Window_ContentRendered / Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new Action(() => { populateDropBoxes(); })); 中使用了以下内容,但却得到了相同的错误。

populateDropBoxes

注意:当我从Ex拨打git config --global gpg.program "C:/Program Files (x86)/GNU/GnuPG/gpg2.exe" ()时:点击一下按钮就可以了。

任何帮助将不胜感激。

0 个答案:

没有答案