Last active
November 23, 2023 23:27
-
-
Save ahmedalejo/1a4f0a22dd2421ccb379705b6f1cc4cf to your computer and use it in GitHub Desktop.
Better Maui - Xamarin Forms Uri/QueryParameter based Navigation via IQueryAttributable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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