返回首页

您好先生

好吧,我要加载作为主机MainWindow的项目上为DLL在运行时,他们选择的任何UserContols。
我想这文章A0}],还可以测试它的StackPanel等成功地,但我想这样发展出一个WPF UserControl的项目


<usercontrol x:class="ManyWpfControlLibrary.UserControl1" xmlns:x="#unknown">

             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 

             xmlnsBig Grin | :-D ="http://schemas.microsoft.com/expression/blend/2008" 

             mc:Ignorable="d" 

             d:DesignHeight="150" d:DesignWidth="300">

    <grid removed="#FFFA8383">

 

    </grid>

</usercontrol>


代码隐藏
{C}
这个UserControl的编译到一个DLL文件,最后将我在运行时插入MainWindow的项目,但我不能做到这一点。

事实上,我们不知道有关DLL(编译UserControl的),它创建和发展了另一个人的脱机上有不同的装配,我们加载并插入它的主要项目在运行!

有关此方法或另一个想法帮助我。如果问题是含糊不清,你的想法,请你编辑这个职位更多的了解。

感谢在前进。| hzawary

回答