Hello,
No, there is no need to set another variable.
Your issue is caused by that you set LabelParameter.Text = member;
in your page constructor method.
Therefore, your program will call LabelParameter.Text = member;
at first, then call member = value;
secondly.
You could use the following ways to deal with the issue:
Method 1:
You could call LabelParameter.Text = member;
in the setter method:
set
{
member = value;
LabelParameter.Text = member;
}
Method 2:
You could call LabelParameter.Text = member; in the
OnAppearing method:
protected override void OnAppearing()
{
base.OnAppearing();
LabelParameter.Text = member;
}
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.