私はWPFが初めてで、単純なポップを効果的に作成しようとしています。しかし、「アタッチ可能なプロパティ Triggers が newwindow 型で見つかりませんでした。以下は 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">
<Grid Height="257" Width="349">
<Label Content="Label" Height="28" HorizontalAlignment="Left" Margin="115,0,0,112" Name="label1" VerticalAlignment="Bottom" Width="127" />
<newwindow.Triggers>
<EventTrigger RoutedEvent="newwindow.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:2" FillBehavior="HoldEnd" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</newwindow.Triggers>
</Grid>
</Window>
.net 3.5 フレームワークで VS 2010 を使用しています。
ありがとうございました。