wpf - XAML 错误:不知道如何检测 ReactiveUI.RoutedViewHost 何时激活/停用
问题描述
我正在尝试将 RoutedViewHost 添加到我的视图中:
<Window x:Class="MyNamespace"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:MyNamespace"
xmlns:rxui="http://reactiveui.net"
mc:Ignorable="d"
Title="MyView" Height="450" Width="800" WindowStyle="None">
<rxui:RoutedViewHost x:Name="routedViewHost"
Grid.Row="1"
Grid.ColumnSpan="3">
<rxui:RoutedViewHost.DefaultContent>
</rxui:RoutedViewHost.DefaultContent>
</rxui:RoutedViewHost>
</Window>
但我收到一个错误:
不知道如何检测 ReactiveUI.RoutedViewHost 何时激活/停用,您可能需要实现 IActivationForViewFetcher
并且不清楚究竟应该实现什么 IActivationForViewFetcher。
我怎么解决这个问题?
解决方案
推荐阅读
- c++ - abort trap - something is wrong with my code
- javascript - Change view and remove element by Ext.Component.query
- java - android.view.InflateException: Binary XML file line #6: Error inflating class com.google.android.gms.maps.MapView
- javascript - Show div using onclick on an a tag
- python - Kill Python thread running a web server
- kubernetes - 如何修复:数字海洋上 nginx-ingress 的空 IP 地址
- ffmpeg - 将原始数据复制到 MP4 的 ffmpeg 命令挂起并且永远不会完成
- javascript - Messenger Postback 按钮根本不起作用
- python-3.x - nn.NLLLoss() 目标大小问题
- django - 覆盖模型保存方法不允许赋值