TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vlasta Juračka
NA
54
674
WPF get children from layout by name
Sep 12 2017 8:48 PM
Hi guys i have really special problem.... I need return child from layout by name... But method findName works only on XAML. But i create layout with label programmatically and i neeed search Label by name from layout. Thanks for some help.
Grid g = (Grid) tasks.SelectedItem;
Label b = (Label)g.FindName("idLabel");
Console.WriteLine(b.Content); //b is null
And guys i havent variable i know only name..
Reply
Answers (
2
)
How to print pdf file without opening it in wpf.
unable to create/save a file using SaveFileDialog in WPF