C# WPF:无法创建类型为的实例

C# WPF:无法创建类型为的实例,c#,wpf,C#,Wpf,我有这个问题,所以在WPF设计期间我看不到任何东西 以下是乞讨处的WPF代码: <UserControl x:Class="VolumeControlInterface.VolumeControlInterface" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns

我有这个问题,所以在WPF设计期间我看不到任何东西

以下是乞讨处的WPF代码:

<UserControl x:Class="VolumeControlInterface.VolumeControlInterface"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vtkVC="clr-namespace:VtkVolumeControl;assembly=VtkVolumeControl"
    xmlns:local="clr-namespace:VolumeControlInterface"
    Height="700" Width="700" Margin="5"

您希望通过以下行实现什么

<Grid DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}">

也许是一些设计时数据……比如,看看这篇文章——可能是我错过了一些VS补丁吗?谢谢,但它似乎给出了同样的错误。仍然无法创建VolumeRender。xaml不显示。是否可以使用堆栈发布完整异常并查找内部异常?当然可以,但在哪里可以找到完整异常?
<Grid DataContext="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}">
<Grid DataContext="{Binding Path=DataContext, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}">