Blend for Visual Studio SDK for .NET in VS2019

Blend for Visual Studio SDK for .NET in VS2019

我需要 Blend for Visual Studio SDK for .NET 在 Visual Studio 2019 中使用交互触发器。在 VS2017 中,它在 Blend for Visual Studio SDK for .NET 中,您可以在此处看到:

VS2019 中这个选项在哪里?

谢谢

更新:我真正需要的是 System.Windows.Interactivity 和 Microsoft.Expression.Interactions,它们都是版本 4.5.0.0

您可以试试这些 nuget 包:

Microsoft.Expression.Blend.SDK.WPF:Microsoft 的 WPF 表达式混合 SDK (4.0)

Microsoft.SDK.Expression.Blend:适用于 4.5 的 Micosoft Expression Blend SDK

Expression.Blend.Sdk:包含System.Windows.Interactivity (4.0, 4.5)

他们都将 Blend SDK dll 打包成一个 nuget 包。

至于 2020 年,它们都被 Jan's answer in other question 中提到的行为所取代。

Link to NuGet package to Microsoft.Xaml.Behaviors.Wpf.

如果你想使用它们,你必须:

  1. 删除对“Microsoft.Expression.Interactions”和“System.Windows.Interactivity”的引用
  2. 安装 Microsoft.Xaml.Behaviors.Wpf NuGet 包。
  3. XAML 文件 – 用行为替换交互和交互的 xmlns 命名空间。
  4. C# 文件 - 用行为替换交互的使用。