mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
31 lines
885 B
C#
31 lines
885 B
C#
using LanMountainDesktop.PluginSdk;
|
|
using LanMountainDesktop.Services.Settings;
|
|
using LanMountainDesktop.ViewModels;
|
|
|
|
namespace LanMountainDesktop.Views.SettingsPages;
|
|
|
|
[SettingsPageInfo(
|
|
"components",
|
|
"Components",
|
|
SettingsPageCategory.Components,
|
|
IconKey = "Apps",
|
|
SortOrder = 20,
|
|
TitleLocalizationKey = "settings.components.title",
|
|
DescriptionLocalizationKey = "settings.components.description")]
|
|
public partial class ComponentsSettingsPage : SettingsPageBase
|
|
{
|
|
public ComponentsSettingsPage()
|
|
: this(new ComponentsSettingsPageViewModel(HostSettingsFacadeProvider.GetOrCreate()))
|
|
{
|
|
}
|
|
|
|
public ComponentsSettingsPage(ComponentsSettingsPageViewModel viewModel)
|
|
{
|
|
ViewModel = viewModel;
|
|
DataContext = ViewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
public ComponentsSettingsPageViewModel ViewModel { get; }
|
|
}
|