silverLight Grid 传递
在同一个页面两个Grid 点击一个Grid内容 另一个Grid变化内容
如何解决啊 各位大哥
[解决办法]
添加需要点击的Grid的鼠标左键点击事件,给你做了个例子,详细见代码:
<Grid x:Name="LayoutRoot" Background="White"> <Grid Height="100" HorizontalAlignment="Left" Margin="41,27,0,0" Name="grid1" VerticalAlignment="Top" Width="200" Background="Green"> <TextBox Height="39" HorizontalAlignment="Left" Margin="34,24,0,0" Name="textBox1" VerticalAlignment="Top" Width="126" /> </Grid> <Grid Height="100" HorizontalAlignment="Left" Margin="40,162,0,0" Name="grid2" VerticalAlignment="Top" Width="200" Background="Gray"> <TextBlock Height="23" HorizontalAlignment="Left" Margin="19,17,0,0" Name="textBlock2" Text="TextBlock" VerticalAlignment="Top" /> </Grid> </Grid>