<Button Name="btnNewGame" Margin="120,292,450,180" Style="{StaticResource mainLobbyBtnStyle}">
<Grid Height="35" Width="200">
...
<Line Name="lineNewGame" X1="200" X2="200" Y1="0" Y2="35" ... />
</Grid>
<Button.Trigger>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Content" Value="qwerty"/>
</Trigger>
</Button.Triggers>
</Button>
我得到“' IsMouseOver ' 成员无效,因为它没有合格的类型名称”。需要帮助来解决这个问题。
第二个问题。我可以在按钮触发器中更改lineNewGame的参数吗?如何?