0

ウィンドウでフェード イン トランジションを実行しようとしています。遷移はできますが、ウィンドウの内容のみです。ウィンドウのフレームとタイトル バーが、その中のコンテンツのように変形していないということです。以下の XAML コードをチェックして、ウィンドウ全体がフェードインするために何をする必要があるかを確認してください。

<Window x:Class="WpfApplication6.newwindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="newwindow" Height="295" Width="371" PreviewStylusInRange="Window_PreviewStylusInRange">
<Window.Triggers>
    <EventTrigger RoutedEvent="Window.Loaded">
        <BeginStoryboard>
            <Storyboard>
                <DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:2" FillBehavior="HoldEnd" />
            </Storyboard>
        </BeginStoryboard>
    </EventTrigger>
</Window.Triggers>


<Grid Height="257" Width="349">
    <Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="115,0,0,112" Name="label1" VerticalAlignment="Bottom" Width="127" Background="#FFDB1F1F" />


    </Grid>

VS 2010 と .NET 3.5 を使用しています。

ありがとうございました。

4

0 に答える 0