Multi-Platform Package Manager for Stable Diffusion
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
923 B

using System.Windows;
using MdXaml;
using StabilityMatrix.ViewModels;
using Wpf.Ui.Controls.Navigation;
namespace StabilityMatrix
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public partial class SettingsPage : INavigableView<SettingsViewModel>
{
public SettingsPage(SettingsViewModel viewModel)
{
ViewModel = viewModel;
DataContext = ViewModel;
InitializeComponent();
var textToFlowDocumentConverter = Resources["TextToFlowDocumentConverter"] as TextToFlowDocumentConverter;
ViewModel.TextToFlowDocumentConverter = textToFlowDocumentConverter;
}
private void SettingsPage_OnLoaded(object sender, RoutedEventArgs e)
{
ViewModel.OnLoaded();
}
public SettingsViewModel ViewModel { get; }
}
}