This commit is contained in:
БП 2025-04-16 08:32:16 +03:00
parent f8ca7c1833
commit d1c7ae5c69
2 changed files with 9 additions and 6 deletions

View File

@ -39,7 +39,7 @@
HeightRequest="20" HeightRequest="20"
Clicked="OnButtonClicked" /> Clicked="OnButtonClicked" />
<Label Text="{Binding User.DisplayName}" TextColor="White" /> <Label Text="{Binding User.DisplayName}" TextColor="White" Padding="0,20,0,0" />
<Button Text="Профиль" <Button Text="Профиль"
TextColor="White" TextColor="White"

View File

@ -1,17 +1,20 @@
using CommunityToolkit.Maui.Views; using CommunityToolkit.Maui.Views;
using MyDiplom.ViewModels;
namespace MyDiplom; namespace MyDiplom;
public partial class UsersPage : ContentPage public partial class UsersPage : ContentPage
{ {
public UsersPage() public UsersPage()
{ {
InitializeComponent(); InitializeComponent();
} this.BindingContext = new UserViewModels();
}
private void OnButtonClicked(object sender, EventArgs e) private void OnButtonClicked(object sender, EventArgs e)
{ {
var buyPopup = new BuyPage(); var buyPopup = new BuyPage();
this.ShowPopup(buyPopup); this.ShowPopup(buyPopup);
} }
} }