public async Task ShowTezosTokens(TezosTokensViewModel tezosTokensViewModel) { if (tezosTokensViewModel == null) return; _ = NavigationWalletsListPage.Navigation.PopToRootAsync(false); CurrentPage = NavigationWalletsListPage; await NavigationWalletsListPage.PushAsync(new TezosTokensListPage(tezosTokensViewModel)); }
public TokenPage(TezosTokensViewModel tezosTokensViewModel) { InitializeComponent(); BindingContext = tezosTokensViewModel; string selectedColorName = "ListViewSelectedBackgroundColor"; if (Application.Current.RequestedTheme == OSAppTheme.Dark) { selectedColorName = "ListViewSelectedBackgroundColorDark"; } Application.Current.Resources.TryGetValue(selectedColorName, out var selectedColor); selectedItemBackgroundColor = (Color)selectedColor; }