csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
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.
57 lines
1.3 KiB
57 lines
1.3 KiB
using Avalonia.Controls;
|
|
using MiniMvvm;
|
|
|
|
namespace ControlCatalog.ViewModels
|
|
{
|
|
public class SettingsViewModel : ViewModelBase
|
|
{
|
|
public SettingsViewModel()
|
|
{
|
|
WindowStates = new WindowState[]
|
|
{
|
|
WindowState.Minimized,
|
|
WindowState.Normal,
|
|
WindowState.Maximized,
|
|
WindowState.FullScreen,
|
|
};
|
|
|
|
WindowState = WindowState.Normal;
|
|
}
|
|
|
|
public WindowState WindowState
|
|
{
|
|
get;
|
|
set => RaiseAndSetIfChanged(ref field, value);
|
|
}
|
|
|
|
public int SelectedDecorationIndex
|
|
{
|
|
get;
|
|
set => RaiseAndSetIfChanged(ref field, value);
|
|
}
|
|
|
|
public int SelectedThemeVariantIndex
|
|
{
|
|
get;
|
|
set => RaiseAndSetIfChanged(ref field, value);
|
|
}
|
|
|
|
public int SelectedTransparencyLevelIndex
|
|
{
|
|
get;
|
|
set => RaiseAndSetIfChanged(ref field, value);
|
|
}
|
|
|
|
public int SelectedFlowDirectionIndex
|
|
{
|
|
get;
|
|
set => RaiseAndSetIfChanged(ref field, value);
|
|
}
|
|
|
|
public WindowState[] WindowStates
|
|
{
|
|
get;
|
|
set => RaiseAndSetIfChanged(ref field, value);
|
|
}
|
|
}
|
|
}
|
|
|