项目结构调整

This commit is contained in:
艾竹
2023-04-16 20:11:40 +08:00
parent cbfbf96033
commit 81f91f3f35
2124 changed files with 218 additions and 5516 deletions

View File

@@ -0,0 +1,40 @@
namespace Fluent.Tests.TestClasses
{
using System;
using System.Diagnostics;
public sealed class TestRibbonWindow : RibbonWindow, IDisposable
{
public TestRibbonWindow()
: this(null)
{
}
public TestRibbonWindow(object content)
{
this.Width = 800;
this.Height = 600;
this.ShowActivated = false;
this.ShowInTaskbar = false;
if (Debugger.IsAttached == false)
{
this.Left = int.MinValue;
this.Top = int.MinValue;
}
// As Ribbon uses layout rounding we should use it here too
FrameworkHelper.SetUseLayoutRounding(this, true);
this.Content = content;
this.Show();
}
public void Dispose()
{
this.Close();
}
}
}