mirror of
https://github.com/muskit/MercuryConverter.git
synced 2026-06-02 20:24:26 -07:00
first commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Styling;
|
||||
|
||||
namespace MercuryConverter;
|
||||
|
||||
using MercuryConverter.Views;
|
||||
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public string RunType
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Design.IsDesignMode)
|
||||
{
|
||||
return "In Design!";
|
||||
}
|
||||
return "In Runtime.";
|
||||
}
|
||||
}
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
// Force dark mode in designer
|
||||
if (Design.IsDesignMode)
|
||||
{
|
||||
RequestedThemeVariant = ThemeVariant.Dark;
|
||||
}
|
||||
// LblPlatform.Content = RunType;
|
||||
|
||||
// Setup tab views
|
||||
SelectionControl.Content = new Selection();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user