在 WPF 中使用 ReactiveUI V8+ RoutedViewHost
Using ReactiveUI V8+ RoutedViewHost in WPF
我正在尝试将我的应用程序模板升级到 V8+。以前工作 xaml 似乎坏了。 .NET Framework 4.7.2、ReactiveUI 8.3.1
<!--Client Area-->
<reactiveUi:RoutedViewHost x:Name="ViewHost"
Margin="3,9.667,3.333,3"
HorizontalAlignment="stretch"
VerticalAlignment="Stretch"
Grid.Row="1">
<reactiveUi:RoutedViewHost.DefaultContent>
<WrapPanel>
</WrapPanel>
</reactiveUi:RoutedViewHost.DefaultContent>
</reactiveUi:RoutedViewHost>
给出设计时警告:
"Don't know how to detect when Reactiveui.RoutedViewHost is activated/deactivated, you may need to implement IActivationFoViewFetcher"。我是否缺少包或 RoutedViewHost 行为是否发生了根本性变化?
您需要包含一个名为 reactiveui.wpf 的新 nuget 包。
这将注册一个 IActivationForViewFetcher。
我正在尝试将我的应用程序模板升级到 V8+。以前工作 xaml 似乎坏了。 .NET Framework 4.7.2、ReactiveUI 8.3.1
<!--Client Area-->
<reactiveUi:RoutedViewHost x:Name="ViewHost"
Margin="3,9.667,3.333,3"
HorizontalAlignment="stretch"
VerticalAlignment="Stretch"
Grid.Row="1">
<reactiveUi:RoutedViewHost.DefaultContent>
<WrapPanel>
</WrapPanel>
</reactiveUi:RoutedViewHost.DefaultContent>
</reactiveUi:RoutedViewHost>
给出设计时警告: "Don't know how to detect when Reactiveui.RoutedViewHost is activated/deactivated, you may need to implement IActivationFoViewFetcher"。我是否缺少包或 RoutedViewHost 行为是否发生了根本性变化?
您需要包含一个名为 reactiveui.wpf 的新 nuget 包。
这将注册一个 IActivationForViewFetcher。