Skip to content

Instantly share code, notes, and snippets.

@ahmedalejo
Last active November 23, 2023 23:27
Show Gist options
  • Save ahmedalejo/1a4f0a22dd2421ccb379705b6f1cc4cf to your computer and use it in GitHub Desktop.
Save ahmedalejo/1a4f0a22dd2421ccb379705b6f1cc4cf to your computer and use it in GitHub Desktop.
Better Maui - Xamarin Forms Uri/QueryParameter based Navigation via IQueryAttributable
//https://learn.microsoft.com/en-us/dotnet/api/microsoft.maui.controls.iqueryattributable
void IQueryAttributable.ApplyQueryAttributes(IDictionary<string, string> query)
{
if (query.Count == 0)
return;
JsonConvert.PopulateObject(
value: JObject.FromObject(query).ToString(),
target:this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment