mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 18:41:26 -07:00
30 lines
923 B
C#
30 lines
923 B
C#
using Bloxstrap.UI.ViewModels.Settings;
|
|
|
|
using System.Windows.Controls;
|
|
|
|
namespace Bloxstrap.UI.Elements.Settings.Pages
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for AppearancePage.xaml
|
|
/// </summary>
|
|
public partial class AppearancePage
|
|
{
|
|
public AppearancePage()
|
|
{
|
|
DataContext = new AppearanceViewModel(this);
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void CustomThemeSelection(object sender, SelectionChangedEventArgs e)
|
|
{
|
|
AppearanceViewModel viewModel = (AppearanceViewModel)DataContext;
|
|
|
|
viewModel.SelectedCustomTheme = (string)((ListBox)sender).SelectedItem;
|
|
viewModel.SelectedCustomThemeName = viewModel.SelectedCustomTheme;
|
|
|
|
viewModel.OnPropertyChanged(nameof(viewModel.SelectedCustomTheme));
|
|
viewModel.OnPropertyChanged(nameof(viewModel.SelectedCustomThemeName));
|
|
}
|
|
}
|
|
}
|