【问题标题】:Helix SharpDx toolkit not accessible in XAML在 XAML 中无法访问 Helix SharpDx 工具包
【发布时间】:2018-07-26 08:10:00
【问题描述】:

我正在将一个示例从 C# 移植到 F#,并使用了 sharpDX helix 工具包。我用 nuget 下载了所有引用,以便两个项目具有相同的引用并复制了 XAML 代码,但我有一个错误说“名称 x 不存在于命名空间'http://helix-toolkit.org/wpf/SharpDX'”。谁能告诉我我做错了什么?

xaml 代码:

<Window
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:hx="http://helix-toolkit.org/wpf/SharpDX"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ie="http://schemas.microsoft.com/expression/2010/interactions"
Title="{Binding Title}"
Width="800"
Height="500"
mc:Ignorable="d">
<Window.Resources>
    <hx:RenderTechniqueConverter x:Key="RenderTechniqueConverter" />
</Window.Resources>

“RenderTechniqueConverter”有错误,通常在我引用 hx 的任何地方。 谢谢

【问题讨论】:

  • 我对sharpDX一无所知,但我想知道你Window.Resources部分中的hx:RenderTechniqueConverter行是否应该是x:RenderTechniqueConverter?即,将hx 替换为x
  • @rmunn 然后我有“Windows Presentation Foundation (WPF) 项目不支持'RenderTechniqueConverter'。”

标签: c# xaml f# sharpdx helix-3d-toolkit


【解决方案1】:

修复它。我的错误,我错过了对“HelixToolkit.Wpf.SharpDX”的引用。当我下载时,一切都很好。希望这对某人有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多