C# Blend无法为许多内在类型生成样本数据
看起来Blend(2015)无法为某些数据类型生成样本值。我失败的类型包括C# Blend无法为许多内在类型生成样本数据,c#,visual-studio,xaml,blend,C#,Visual Studio,Xaml,Blend,看起来Blend(2015)无法为某些数据类型生成样本值。我失败的类型包括short和byte。生成样本值的类型有string、int和bool。是否有其他人经历过这种情况,是否有解决此限制的方法 示例: 以下类未生成正确的示例数据: public partial class PointLocation { public byte Number { get; set; } public short X { get; set; } public short Y { get;
short
和byte
。生成样本值的类型有string
、int
和bool
。是否有其他人经历过这种情况,是否有解决此限制的方法
示例:
以下类未生成正确的示例数据:
public partial class PointLocation
{
public byte Number { get; set; }
public short X { get; set; }
public short Y { get; set; }
}
示例数据如下所示(请注意,没有示例值):
示例数据如下所示:
<VM:PointLocation Number="79" X="30" Y="68" />
我也注意到了同样的事情。您可以手动编辑生成的样本数据并自己添加值。我也注意到了同样的事情。您可以手动编辑生成的样本数据并自己添加值
public partial class PointLocation
{
public int Number { get; set; }
public int X { get; set; }
public int Y { get; set; }
}
<VM:PointLocation Number="79" X="30" Y="68" />