【发布时间】: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