在 ViewModel 中显示 XLabs PopupLayout XAML

Show XLabs PopupLayout XAML in a ViewModel

我正在使用 XLabs/MVVM/IOC。 有人请在这种情况下有一个简单的例子(PopupLayout)吗?

我的意思是 XAML 后面没有代码。

例如,如何在我的 ViewModel 中显示这个 PopupLayout?

<ContentPage.Content>
    <controls:PopupLayout>
        <controls:PopupLayout.Content>
            <Button x:Name="OpenButton" Text="Open selector popup" />
        </controls:PopupLayout.Content>
    </controls:PopupLayout>
</ContentPage.Content>

根据开发团队:

The PopupLayout isn't really meant to be XAML only control. You will have to write some code-behind for it.