c# - Prism如何在UserControl中添加UserControl
问题描述
(我的英文不是很好,如有错误请见谅)
我在项目中定义了一个 UserControl
<ContentControl prism:RegionManager.RegionName="MenuTreeRegion"/>
如何向此添加 UserControl
我试图在 ViewModel 构造函数中添加
_regionManager.RequestNavigate("MenuTreeRegion", "SettingMenuTree");
app.xaml 添加
containerRegistry.RegisterForNavigation<SettingModuleView>();
但我无法将 UserControl 添加到 UserControl 中的 contentcontrol
先谢谢
解决方案
推荐阅读
- swiftui - 防止点击时突出显示 VStack 中的 NavigationLink
- scala - IntelliJ Scala maven构建jar不生成类文件
- python - 无法使用 Flask-SocketIO 向房间发送消息
- blogger - 如何编辑博客 HTML 以在移动主题中显示默认搜索框?
- javascript - Popper popovers 没有正确遵循旋转的 popper 参考
- javascript - d3 v4 地图意外变空
- git - 我无法在 Digital Ocean 上进行远程部署
- java - 为什么数据文件中的count值不递增?
- geolocation - Json 文件未加载到 folium 地图上
- matlab - 取矩阵列的平均值