【问题标题】:Blend for Visual Studio SDK for .NET in VS2019Blend for Visual Studio SDK for .NET 在 VS2019
【发布时间】:2019-06-15 11:07:50
【问题描述】:

我需要 Blend for Visual Studio SDK for .NET 在 Visual Studio 2019 中使用交互触发器。在 VS2017 中,它位于 Blend for Visual Studio SDK for .NET 中,您可以在此处看到: Visual Studio 2017 - What happened to Expression interactions?

VS2019 这个选项在哪里?

谢谢

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

【问题讨论】:

  • @HansPassant 我认为这个解决方案对我无效,因为我需要 System.Windows.Interactivity 4.5.0.0(我仍然使用 prism 5.0)
  • 大声笑,我撰写了您链接的 2017 年问题,并且在升级到 2019 年并且在同一条船上后才找到您的问题。我真的希望每个新版本的 VS 都不会对我们的项目进行重大更改。

标签: blend interaction visual-studio-2019


【解决方案1】:

你可以试试这些 nuget 包:

Microsoft.Expression.Blend.SDK.WPF: Microsoft 的 Expression Blend SDK for WPF (4.0)

Microsoft.SDK.Expression.Blend: Micosoft Expression Blend SDK for 4.5

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

它们都将 Blend SDK dll 包装到一个 nuget 包中。

【讨论】:

    【解决方案2】:

    至于 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# 文件 - 将交互的使用替换为行为。

    【讨论】:

    • 所以我在 VS2019 中有一个 xmlns:d="schemas.microsoft.com/expression/blend/2008" 和 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 的 XAML 条目.我的 SWI 东西是否有效,因为我有混合物?另外,您能否在帖子中添加一个简单的 XAML 更改示例(之前和之后)?
    猜你喜欢
    • 1970-01-01
    • 2014-02-27
    • 2012-04-03
    • 1970-01-01
    • 2022-09-30
    • 1970-01-01
    • 2013-12-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多