Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Shell navigation routing Query properties are null

$
0
0

Query properties are null while using shell gotoasync

await Shell.Current.GoToAsync($"userDetails?id={id}");

UserDetailsViewModel:
[QueryProperty("Id", "id")]
public class UserDetailsViewModel : BaseViewModel
{
private string _id;
public string Id
{
get => _id;
set => SetProperty(ref _id, value);
}

    public UserDetailsViewModel(){
      var x=Id;
    }
}

Viewing all articles
Browse latest Browse all 89864

Trending Articles



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