void UserInfoIcon_Tapped(object sender, EventArgs e)
        {
            Tab_Account.BackgroundColor = Constants.CurrentTabColor;
            Tab_Home.BackgroundColor    = Constants.DefaultTabColor;
            Tab_Add.BackgroundColor     = Constants.DefaultTabColor;
            Tab_Message.BackgroundColor = Constants.DefaultTabColor;
            Tab_Explore.BackgroundColor = Constants.DefaultTabColor;

            var page = new UserInfoPage(null);

            InsertContent.Content = page.Content;
        }
Beispiel #2
0
        //Profile Image Tapped => go to activity host user profile page
        async Task ProfileImageTapped(object sender, MyListItemEventArgs e)
        {
            UserProfileView user = await Helper.GetUserProfileViewObj(e.MyItem.HostUserId);

            var page = new UserInfoPage(user);

            if (Device.RuntimePlatform == Device.Android)
            {
                Application.Current.MainPage = new Dashboard(page);
            }
            else if (Device.RuntimePlatform == Device.iOS)
            {
                await Navigation.PushModalAsync(new Dashboard(page));
            }
        }