在前台全屏显示?

时间:2016-12-07 18:11:28

标签: c# xaml xamarin xamarin.forms content-pages

假设我有一个'ContentPage' - 没有XAML文件的对象。是否可以在全屏前景或应用的网格列中显示它的内容?

我有一个有接口的插件

public interface IPlugin
{
    ContentPage GetPluginUI();
}

插件本身返回源XAML文件“BigView”的新实例

    public ContentPage GetPluginUI()
    {
        return new BigView();
    }

源自“ContentPage”。

现在,当我在主机程序中加载插件时,我得到了ContentPage对象:

ContentPage pluginContentPage = plugin.GetPluginUI();

如何显示“pluginContentPage”进行测试?

0 个答案:

没有答案