0

I use WPF , and I create an like this

<Image Name="imageName" Grid.Row="0" Source="r.jpg" />

but with c# when I try to access this image and write imageName, sometimes I can not see anything why?

Luanne
  • 19,145
  • 1
  • 39
  • 51
dani1999
  • 89
  • 2
  • 10
  • Are you sure this image isn't in DataTemplate or ControlTemplate? And you should use `x:Name` instead of `Name` – Posix Dec 06 '15 at 22:30
  • why should i need x:Name ? when i try to edit Lable orTEXTBOX i use on "name" only. no x:Name – dani1999 Dec 06 '15 at 22:32
  • 1
    http://stackoverflow.com/questions/589874/in-wpf-what-are-the-differences-between-the-xname-and-name-attributes/593151#593151 – Posix Dec 06 '15 at 22:34

0 Answers0