Есть ли способ получить элемент XAML по свойству Tag?
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, есть ли способ получить объект Grid с помощью Tag Propertty ??
Извините за меньшую информацию, что сетка находится в ListBox .. Как я могу получить доступ к объекту сетки?
Спасибо и Reagrds Yashavantha