Expression Blend SP1 での問題

SP1でバグらしき症状が確認されましたのでご報告いたします。

タイトル

Expression Design2 で作成した 文字オブジェクトをクリップボード経由でBlend2 SP1にペーストすると、文字が表示されなくなる。

再現手順

  1. Expression Design2で文字オブジェクトを作成

    image

  2. 作成した文字オブジェクトをコピー

  3. Expression Blend2 SP1でWPFプロジェクトを作成する

  4. Layout Root 上にペーストする

  5. オブジェクトは作成されるがサイズが0で確認されない

    image

原因・問題

Expression Blend2 SP1でペーストする際に、TextBlockオブジェクトに Width=”0” Height=”0” のタグを補完してしまうため。

尚、Blend2 ではこの問題は発生しない。

正しいタグ (Blend2)

<TextBlock TextAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left"><TextBlock.RenderTransform>

              <TransformGroup>

                            <MatrixTransform Matrix="1.33333,0,0,1.33333,335.5,227.6"/>

              </TransformGroup>

</TextBlock.RenderTransform><Run FontFamily="メイリオ" FontSize="36" Text="Windows7" Foreground="#FFFFFFFF"/></TextBlock>

問題のタグ (Blend2 SP1)

<TextBlock TextAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Width= ”0” Height=”0” ><TextBlock.RenderTransform>

              <TransformGroup>

                            <MatrixTransform Matrix="1.33333,0,0,1.33333,335.5,227.6"/>

              </TransformGroup>

</TextBlock.RenderTransform><Run FontFamily="メイリオ" FontSize="36" Text="Windows7" Foreground="#FFFFFFFF"/></TextBlock>

対処方法

XAMLから Width=”0” Height=”0” を削除する。

image

もしくは

TextBlockオブジェクトを選択し、プロパティで Width , Height のそれぞれの詳細プロパティオプション(右の■)からリセットを選択する。

image image

image

まぁ、じっさいまだちゃんと問題として把握できたわけではないですが、一応参考までに。