login.xaml链接的TextBlock和TextBox在C#中的XAML
<TextBox x:Name="player1" HorizontalAlignment="Left" Margin="544,280,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Height="44" Width="280" CacheMode="BitmapCache" FontFamily="Century Schoolbook" FontSize="26">
<TextBox.Foreground>
<SolidColorBrush Color="White" />
</TextBox.Foreground>
<TextBox.Background>
<SolidColorBrush Color="#FF1EA600" Opacity="0.645"/>
</TextBox.Background>
</TextBox>
现在我想转由用户提供的名称,以文本块,以便它可以更改默认的名称是“玩家1个回合”
MainPage.xaml中
<TextBlock x:Name="playerTurn" TextWrapping="Wrap" Text="Player 1 Turn" VerticalAlignment="Top" Height="70" FontSize="50"
Foreground="Cyan" TextAlignment="Center" FontFamily="Century Gothic" />
因此,因此我创造了两个不同的页面文件是“ login.xaml'&'MainPage.xaml'但我无法访问用户输入数据到文本块!
你是如何将值传递给主页? –
使用查询字符串。谷歌!谷歌!!谷歌!!! – niksofteng
这是我想知道如何将值从“登录”传递给MainPage.xaml – Ethical