create a setup builder impl from MicaSetup

This commit is contained in:
ema
2023-12-04 01:36:02 +08:00
parent edc597a19a
commit a6891e29dc
465 changed files with 34946 additions and 75 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Windows;
using System.Windows.Controls;
namespace MicaSetup.Design.Controls;
public class ShellControl : ContentControl
{
public string Route
{
get => (string)GetValue(RouteProperty);
set => SetCurrentValue(RouteProperty, value);
}
public static readonly DependencyProperty RouteProperty = DependencyProperty.Register(nameof(Route), typeof(string), typeof(ShellControl), new(string.Empty));
public ShellControl()
{
Routing.Shell = new WeakReference<ShellControl>(this);
FocusVisualStyle = null!;
Loaded += (_, _) => Routing.GoTo(Route);
}
}