question

CemYedikardes-5780 avatar image
0 Votes"
CemYedikardes-5780 asked ·

xamarin data transfer from another page

First I am beginner for Xamarin, i want to transfer data Mainpage to Page1 I wrote code but it is not working please help me. Code is below;

Mainpage

public partial class MainPage : ContentPage
{
public string deg3 { get; set; }
public int deg4 { get; set; }
public MainPage()
{
InitializeComponent();
deg3 = entry3.Text;
}
private async void nextpage_Clicked(object sender, EventArgs e)
{
await Navigation.PushModalAsync(new NavigationPage(new Page1()));
new Page1 { deg1 = deg3 };
}
}

Page1

public partial class Page1 : ContentPage
{
public string deg1 { get; set; }
public int deg2 { get; set; }

     private void degeral_Clicked(object sender, EventArgs e)
     {
         entry1.Text = deg1;
     }
     public Page1()
     {
         InitializeComponent();
            
     }






not-supported
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

I'd try asking for help in dedicated Xamarin forums here.

https://forums.xamarin.com/




--please don't forget to Accept as answer if the reply is helpful--


Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management


Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.





· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CemYedikardes-5780 avatar image
0 Votes"
CemYedikardes-5780 answered ·

Sorry I am trying to register forum not accepted :(.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered ·

Might want to email them here about registration issues.


xamarinforums [at] microsoft [dot] com


--please don't forget to Accept as answer if the reply is helpful--


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CemYedikardes-5780 avatar image
0 Votes"
CemYedikardes-5780 answered ·

I wrote now also forum.xamarin.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.