Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions HospitalApp/SettingsPageView.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// In your code-behind file (SettingsPageView.xaml.cs)
using Avalonia.Controls;
using Avalonia.Interactivity;

namespace HospitalApp.Views
{
public partial class SettingsPageView : UserControl
{
public SettingsPageView()
{
InitializeComponent();

// Hook up the General button click event
GeneralButton.Click += OnGeneralButtonClick;
}

private void OnGeneralButtonClick(object sender, RoutedEventArgs e)
{
// Get the main content control (you'll need to add an x:Name to your content area)
ContentControl mainContent = this.FindControl<ContentControl>("MainContent");

// Create a new instance of the patient profile view
PatientProfileView patientView = new PatientProfileView();

// Set the content to the patient profile view
mainContent.Content = patientView;
}
}
}// In your code-behind file (SettingsPageView.xaml.cs)
using Avalonia.Controls;
using Avalonia.Interactivity;

namespace HospitalApp.Views
{
public partial class SettingsPageView : UserControl
{
public SettingsPageView()
{
InitializeComponent();

// Hook up the General button click event
GeneralButton.Click += OnGeneralButtonClick;
}

private void OnGeneralButtonClick(object sender, RoutedEventArgs e)
{
// Get the main content control (you'll need to add an x:Name to your content area)
ContentControl mainContent = this.FindControl<ContentControl>("MainContent");

// Create a new instance of the patient profile view
PatientProfileView patientView = new PatientProfileView();

// Set the content to the patient profile view
mainContent.Content = patientView;
}
}
}