How to access control in Code Behind that was 'created' in XAML
.net, c#, wpf, xaml
Solution
Use `x:Name` instead of `Name`. That should do the trick.
Problem
I have a control I 'created' in XAML that I want to access through the Code Behind. ``` <wincontrols:LiveTileFrameElement Name="PendingAuthsFrame1" Text="Pending" /> this.PendingAuthsFrame1.Text = "334"; ``` However, I get a Build Error on the second statement above stating `MyApp.MainWindow does not contain a definition for 'PendingAuthsFrame1' and no extension method....` it keeps going but you get the idea I'm guessing. What am I missing or doing wrong?