Ayappan Alagesan

Ayappan Alagesan

  • NA
  • 324
  • 66.4k

Get particular element in datatemplate.

Jun 26 2017 12:43 AM
<Window.Resource> 
 
<DataTemplate x:Key="AlertTemplateShortView" >
<Border x:Name="BdrListBox1" BorderBrush="{DynamicResource WhiteColorBrush}" BorderThickness="0 0 0 .5" CornerRadius="0" VerticalAlignment="Top" Margin="0,0,0,-1" Visibility="{Binding IsVisibility}">
<Grid DataContext="{Binding}" Margin="1" Name="Alertgrid">
</Grid>
</Border>
</DataTemplate>
 </Window.Resource>
 
 
I want to get the border element in codebehind.

Answers (2)