<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的参数吗?怎么样?
因此事件触发器。我可以在我的按钮事件触发器中更改lineNewGame的参数吗? – NDQuattro