增加保温层和整理管线的功能,修复自动保存功能等修复多个bug
This commit is contained in:
47
RvAddinTest/FluentWindow.xaml.cs
Normal file
47
RvAddinTest/FluentWindow.xaml.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
using Wpf.Ui;
|
||||
using Wpf.Ui.Appearance;
|
||||
|
||||
namespace RvAddinTest;
|
||||
/// <summary>
|
||||
/// FluentWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class FluentWindow
|
||||
{
|
||||
public FluentWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
ApplicationThemeManager.Apply(this);
|
||||
ApplicationThemeManager.Changed -= ApplicationThemeManager_Changed;
|
||||
ApplicationThemeManager.Changed += ApplicationThemeManager_Changed;
|
||||
}
|
||||
private void ApplicationThemeManager_Changed(ApplicationTheme currentApplicationTheme, Color systemAccent)
|
||||
{
|
||||
ApplicationThemeManager.Apply(this);
|
||||
}
|
||||
|
||||
private void Button_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (ApplicationThemeManager.GetAppTheme() == ApplicationTheme.Light)
|
||||
{
|
||||
ApplicationThemeManager.Apply(ApplicationTheme.Dark);
|
||||
}
|
||||
else
|
||||
{
|
||||
ApplicationThemeManager.Apply(ApplicationTheme.Light);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user