先ほどテンプレートのインポートのところで質問させて頂きました shojiと申します。
194ページのWPFのXAMLコードの記入をして見るとエラーメッセージが出てきました。 タイピングミスではないと思うのですが、原因がわからないです。
エラーメッセージと 私の写し書きしたXAMLコードは以下のとおりです。
1.アタッチ可能なプロパティ'RenderTransform'が、型'Button'にみつかりませんでした。 14行目
2.アタッチ可能なプロパティ'Triggers'が、型'Button'にみつかりませんでした。 21行目
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid>
<!--ボタンを表示します-->
<Button Margin="126,115,122,117"
Name="Button1" Background="#FF454545"
Foreground="#FFD8D8D8">
<!--Aという文字を表示します-->
A</Button>
<!--ボタン回転度合いを定義します-->
<Button.RenderTransform> ”ここで Button.RenderTransform の部分に波線が付けられました。
<RotateTransform Angle="0" />
</Button.RenderTransform>
<!--ボタンを360度回転するように定義します-->
<Button.Triggers> ”ここで Button.Triggers の部分に波線が付けられました。
<EventTrigger RoutedEvent="ButtonBase.Click">
<BeginStoryboard>
<Storyboard>
<DoubleAnimationUsingKeyFrames
BeginTime="00:00:00"
Storyboard.TargetProperty="(Button.RenderTransform).(RotateTransform.Angel)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:03" Value="360"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Grid>
</Window>