1
Blend(2015)は特定のデータ型のサンプル値を生成できないようです。私にとって失敗したタイプは、short
とbyte
です。サンプル値を生成したタイプは、string
,int
およびbool
です。他の誰かがそれを体験しましたが、この制限の回避策がありますか?Blendは多くの組み込み型のサンプルデータを生成できません
例:
以下のクラスが正しいサンプルデータを生成しない。
public partial class PointLocation
{
public byte Number { get; set; }
public short X { get; set; }
public short Y { get; set; }
}
サンプルデータ(予告なしのサンプル値が存在しない)ように見える:
<VM:PointLocation>
<VM:PointLocation.Number>
<System:Byte/>
</VM:PointLocation.Number>
<VM:PointLocation.X>
<System:Int16/>
</VM:PointLocation.X>
<VM:PointLocation.Y>
<System:Int16/>
</VM:PointLocation.Y>
</VM:PointLocation>
しかし、単にこれらのプロパティのデータ型をint
に変更すると:
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" />