Is there any way to get the XAML element by its tag value??
我的代码是这样的:
<Grid Tap="StackPanel_Tap" Tag="{Binding Type}" >
<Border BorderThickness="0" CornerRadius="0" BorderBrush="White" Width="100" Height="100" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="1" >
<Image Tag="{Binding Type}" Source="{Binding Location}" Opacity="1" Width="100" Height="100" Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center" UseLayoutRounding="True" >
</Image>
</Border>
</Grid>
我正在为 Grid 绑定 Tag 属性,有没有办法通过使用 Tag 属性来获取 Grid 的对象?
对不起,网格在 ListBox 中的信息较少。我如何访问网格对象?
感谢并感谢Yashavantha