Replies: 1 comment
-
You can define a filed backed property for storing the parameters passed during the navigation. You will know exactly once the value of the property is set, then you can initialize you setup logic. Example : private string _parameter;
public string Parameter
{
get
{
return _parameter;
}
set
{
_parameter= value;
if (!string.IsNullOrEmpty(value))
{
// Initialize your logic
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to ensure that parameters passed during Shell navigation are set before Page's NavigatedTo or Appearing event are fired? I want to use those parameters during or after page initialization in some setup logic, without user interaction. Is it possible? If not, what is the best practice for similar use cases?
Beta Was this translation helpful? Give feedback.
All reactions