Witam, chciałbym się odwołać do kontrolek w xamlu. Każda próba przynosi błąd:
"The name 'textBox' does not exist in the current context" dodam, iż przed wrzuceniem textboxa w hub nie było problemu z dostępem. Jak rozwiązać ten problem ?
xaml:
<Page
x:Class="App3.Test"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App3"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" RenderTransformOrigin="0.464,0.727" Margin="0,0,-60,0">
<Hub Header="Hub">
<HubSection Header="HubSection 0" Width="372">
<DataTemplate>
<Grid Height="520" Width="360">
<TextBox x:Name="textBox1" Margin="126,270,139,0" TextWrapping="Wrap" Text="" TextChanged="textBox1_TextChanged" VerticalAlignment="Top" d:LayoutOverrides="LeftPosition, RightPosition"/>
</Grid>
</DataTemplate>
</HubSection>
</Hub>
</Grid>
</Page>