Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to access a data Which I entered at a Entry tab on other page?

$
0
0

I am a beginner . I want to to get a data from
page1.xaml

and access this data at other .xaml pages like page3.xaml and page 5.xaml.

Here the data I get in 'X:Name= "EntryText1"' will automatically shown in 'X:Name="EntryText3"' . please tell me, What can I do.

Page1.xaml:

    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="NSF_app.setting">

<StackLayout BackgroundColor="White" ">

    <Entry x:Name="EntryText1"/>

</StackLayout>

page1.xaml.cs:

public partial class page1: ContentPage
{
public page1()
 {
 InitializeComponent();
 }
}

page3.xaml:

     <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="NSF_app.setting">

<StackLayout BackgroundColor="White" ">

    <Entry x:Name="EntryText2"/>
    <Entry x:Name="EntryText3"/>
    <Entry x:Name="EntryText4"/>
</StackLayout>

page3.xaml.cs:

       public partial class page3: ContentPage
{
public page3()
 {
 InitializeComponent();
 }
}

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>