wpf,已知窗体的路径怎么打开此窗体

wpf,已知窗体的路径如何打开此窗体
本帖最后由 eHuaTian 于 2014-08-08 16:30:19 编辑
已知一个窗体的路径为“/fmeCruise;component/InnerWins/pipeInTempDB.xaml”,
如何使用代码,将这个窗体显示出来?
------解决方案--------------------
引用:
wpf,已知窗体的路径怎么打开此窗体


把  Window节点中的 指定后天cs文件的引用路径
x:Class="MyWpfApplication.MainWindow"

给删除了。另外 ,你的window 窗口中不能存在任何的 事件,不管是窗体加载还是button的click事件。
就像这一样 干净:

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MyWindow" Height="300" Width="300">
    <Grid>
        <WrapPanel>
            <Button Content="btnRetry" IsCancel="False" IsDefault="True"></Button>
        </WrapPanel>

    </Grid>
</Window>