XAML error: Don't know how to detect when ReactiveUI.RoutedViewHost is activated/deactivated
XAML error: Don't know how to detect when ReactiveUI.RoutedViewHost is activated/deactivated
我正在尝试将 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>
但是我得到一个错误:
Don't know how to detect when ReactiveUI.RoutedViewHost is activated/deactivated, you may need to implement IActivationForViewFetcher
并且不清楚具体应该实现 IActivationForViewFetcher 的内容。
我该如何解决这个问题?
这可能与以下错误有关:
https://github.com/reactiveui/ReactiveUI/issues/1696
是否只与设计师有关?
我正在尝试将 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>
但是我得到一个错误:
Don't know how to detect when ReactiveUI.RoutedViewHost is activated/deactivated, you may need to implement IActivationForViewFetcher
并且不清楚具体应该实现 IActivationForViewFetcher 的内容。
我该如何解决这个问题?
这可能与以下错误有关:
https://github.com/reactiveui/ReactiveUI/issues/1696
是否只与设计师有关?