我使用Visual Studio,C#和WPF。我创建了一个名为"WindowsMonopoly"
的主窗口和一个名为" CasellaColore"的用户控件,其中包含一些属性。在"WindowMonopoly"
我放了更多的"CasellaColore"
。我有这种情况:
<Monopoly:CasellaColore x:Name="Casella8" Grid.Row="10" Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Indice="8" ColoreCasella="Black"/>
<Monopoly:CasellaColore x:Name="Casella9" Grid.Row="10" Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Indice="9" ColoreCasella="Black"/>
等...
现在我希望当我将光标放在"CasellaColore"
之一上时,必须将其显示在网格中。用简单的语言解释:
当光标位于"CasellaColore"
上时,请将此"CasellaColore"
显示在"WindowMonopoly"
的网格中。
我必须重做&#34;所有&#34;垄断,作为学校的运动。我对C#和WPF的了解有限,但我是本课程中最好的编程之一。