Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Get particular element in datatemplate.
Ayappan Alagesan
Jun 26 2017 12:43 AM
205
Reply
<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.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Programmatically Animating a StackPanel using C# in WPF
Autocomplete text box in the Datagrid in WPF how to do this