mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
- Update ISettingProvider to support CreateSettingPanelAvalonia - Create native Avalonia settings UI for Program Plugin (ProgramSetting.axaml) - Implement ProgramSettingViewModel using CommunityToolkit.Mvvm - Update PluginsSettingsViewModel to detect and load native Avalonia settings - Replace ListBox with ItemsControl in PluginsSettingsPage to fix auto-scroll issues when expanding settings - Align Avalonia package versions (11.2.3) across projects to fix type load errors
24 lines
559 B
C#
24 lines
559 B
C#
using Avalonia.Controls;
|
|
using Avalonia.Markup.Xaml;
|
|
using Flow.Launcher.Plugin.Program.ViewModels;
|
|
|
|
namespace Flow.Launcher.Plugin.Program.Views.Avalonia;
|
|
|
|
public partial class ProgramSetting : UserControl
|
|
{
|
|
public ProgramSetting()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public ProgramSetting(PluginInitContext context, Settings settings)
|
|
{
|
|
DataContext = new ProgramSettingViewModel(context, settings);
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
}
|