如何在MvxFragment中显示MvxDialogFragment。不能使用FragmentMaganer和其他解决方案。显示片段中的对话框片段
没有工作
public void ShowFragmentLatestInvoices()
{
var transaction = FragmentManager.BeginTransaction();
var Manager = FragmentManager.BeginTransaction();
LatestInvoicesFragment LatestInvoicesFragment = new LatestInvoicesFragment();
LatestInvoicesFragment.DataContext = ViewModel.InvoiceVM;
LatestInvoicesFragment.Show(SupportFragmentManager, "LatestInvoices_fragment");
OnAttachFragment (LatestInvoices);
}
你为什么要做'OnAttachFragment(LatestInvoices);'这个? –
问题是SupportFragmentManager如何包含?在最新的InvoicesFragment.Show(SupportFragmentManager,“LatestInvoices_fragment”); –