Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 来自用户控件的控件_C#_Wpf_Xaml_Wpf Controls_Wpf 4.0 - Fatal编程技术网

C# 来自用户控件的控件

C# 来自用户控件的控件,c#,wpf,xaml,wpf-controls,wpf-4.0,C#,Wpf,Xaml,Wpf Controls,Wpf 4.0,我使用from codeplex创建自定义选择器 我用这些二进制文件创建了自己的自定义控件。但它在初始化时会抛出一些异常 原始控制项目 我继承的自定义控件代码 错误 变通办法 我已经尝试在资源字典中添加usercontrolIntellibox.xaml,但没有帮助,因为它是一个用户控件,我知道我无法将其添加到资源字典中 <ResourceDictionary.MergedDictionaries> <ResourceDic

我使用from codeplex创建自定义选择器

我用这些二进制文件创建了自己的自定义控件。但它在初始化时会抛出一些异常

原始控制项目

我继承的自定义控件代码

错误

变通办法

我已经尝试在资源字典中添加usercontrolIntellibox.xaml,但没有帮助,因为它是一个用户控件,我知道我无法将其添加到资源字典中

 <ResourceDictionary.MergedDictionaries>               
           <ResourceDictionary Source="Themes.xaml"/>
          <ResourceDictionary Source= "/Intellibox;component/Intellibox.xaml"/>
</ResourceDictionary.MergedDictionaries>

是否有其他方法来执行上述控件,或者我是否正确地将控件保存到自己的自定义控件中我是否遗漏了任何内容???

自定义控件是一个特定的模板,您是否真的使用了它?用PushItemsPicker显示一个小样本项目。@HenkHolterman是的,你是对的,但这里不是一个自定义控件,只是一个从intellibox继承的类库,我正在WPF项目中使用它。从UserControl/Window/Page继承可能没那么容易。
{"The component 'Apico.Controls.DocumentListPicker' does not have a resource identified by the URI '/Intellibox;component/intellibox.xaml'."}
{"'The invocation of the constructor on type 'Apico.Controls.DocumentListPicker' that matches the specified binding constraints threw an exception.' Line number '132' and line position '10'."}
 <ResourceDictionary.MergedDictionaries>               
           <ResourceDictionary Source="Themes.xaml"/>
          <ResourceDictionary Source= "/Intellibox;component/Intellibox.xaml"/>
</ResourceDictionary.MergedDictionaries>