Esempio n. 1
0
        public async Task ShowTezosTokens(TezosTokensViewModel tezosTokensViewModel)
        {
            if (tezosTokensViewModel == null)
                return;

            _ = NavigationWalletsListPage.Navigation.PopToRootAsync(false);
            CurrentPage = NavigationWalletsListPage;

            await NavigationWalletsListPage.PushAsync(new TezosTokensListPage(tezosTokensViewModel));
        }
Esempio n. 2
0
        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;
        }