Hello, I add a listbox to the wpf form. Here is a fix:
<ListBox Height="311" HorizontalAlignment="Left" Name="listBox1" VerticalAlignment="Top" Width="503" />
Here is how I address:
listBox1.Item.Add("3333");
When I try to access the component, the compiler swears:
The name 'listBox1' does not exist in the current context
How to solve it? Listbox is in grid.