VisitsView.axaml.cs 776 B

12345678910111213141516171819202122232425262728
  1. using Avalonia;
  2. using Avalonia.Controls;
  3. using Avalonia.Input;
  4. using Avalonia.Markup.Xaml;
  5. namespace Acosta.Views;
  6. public partial class VisitsView : UserControl
  7. {
  8. public VisitsView()
  9. {
  10. InitializeComponent();
  11. }
  12. //private void VisitClicked(object sender, PointerPressedEventArgs e, UserControl uc)
  13. //{
  14. // // Assuming you have a navigation service instance or a way to swap views
  15. // // Navigate to another page (Page2.xaml in this example)
  16. // // Option 1: Using navigation service if available
  17. // // _navigationService.NavigateTo(new Page2());
  18. // // Option 2: Manually swapping views
  19. // // Assuming MainContentControl is where you display your pages
  20. // uc = new EditVisitView();
  21. //}
  22. }