2

Windows Phone 8.1 ランタイム用のアプリケーション、つまりストア アプリケーションを開発しています。ここではStoryboardアニメーションをstackpanelに適用しています。

<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="StkPnl">
                            <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.2"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="StkPnl">
                            <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.2"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>

ここでは、次のようにスケーリングしています。

<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.2"/>
<EasingDoubleKeyFrame KeyTime="0:0:2" Value="1"/>

0 から 1 ではなく、0.2 から 1 を意味します。

私の質問は:オブジェクト (ここではスタックパネル) を 0.2 から 1 にスケールすると、アニメーションが終了するまでぼやけて見えます。0 から 1 にすると、うまくいきます。

更新 1:

<StackPanel x:Name="StkPnlName" Visibility="Collapsed" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0,512,0,0" RenderTransformOrigin="0.5,0.5">
            <StackPanel.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </StackPanel.RenderTransform>
            <Grid>
                <Ellipse Height="38" Width="38" Fill="Blue"/>
                <FontIcon Glyph="&#xcode" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="20" Foreground="White" FontFamily="{StaticResource Resource}"/>
            </Grid>
            <TextBlock Text="Text" Foreground="Black" MaxHeight="38" FontSize="14" TextAlignment="Center" Width="74" TextTrimming="WordEllipsis" TextWrapping="Wrap" Style="{StaticResource Resource}" FontWeight="SemiBold"/>
</StackPanel>

私は何が欠けていますか?誰でもこの状況に遭遇したことを提案してください。ありがとう。

4

0 に答える 0