mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[Chore] Run solution code cleanup (#20584)
This commit is contained in:
@@ -7,7 +7,6 @@ using System.Diagnostics;
|
||||
using System.Threading;
|
||||
using System.Windows;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Threading;
|
||||
using Common.UI;
|
||||
using FancyZonesEditor.Logs;
|
||||
using FancyZonesEditor.Utils;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
namespace FancyZonesEditor.Controls
|
||||
{
|
||||
using System.Windows;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Controls;
|
||||
|
||||
|
||||
@@ -290,11 +290,11 @@ namespace FancyZonesEditor
|
||||
|
||||
if (IsActualSize)
|
||||
{
|
||||
rect.Style = (Style)FindResource("CanvasLayoutActualScalePreviewStyle");
|
||||
rect.Style = (Style)FindResource("CanvasLayoutActualScalePreviewStyle");
|
||||
}
|
||||
else
|
||||
{
|
||||
rect.Style = (Style)FindResource("CanvasLayoutSmallScalePreviewStyle");
|
||||
rect.Style = (Style)FindResource("CanvasLayoutSmallScalePreviewStyle");
|
||||
}
|
||||
|
||||
frame.Children.Add(rect);
|
||||
|
||||
@@ -14,7 +14,6 @@ using Common.UI;
|
||||
using FancyZonesEditor.Logs;
|
||||
using FancyZonesEditor.Models;
|
||||
using FancyZonesEditor.Utils;
|
||||
using ModernWpf.Automation.Peers;
|
||||
using ModernWpf.Controls;
|
||||
|
||||
namespace FancyZonesEditor
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using FancyZonesEditor.Models;
|
||||
|
||||
namespace FancyZonesEditor
|
||||
|
||||
@@ -24,7 +24,5 @@ namespace FancyZonesEditor
|
||||
public int Offset { get; }
|
||||
}
|
||||
|
||||
#pragma warning disable CA1711 // Identifiers should not have incorrect suffix (Causes warning in another class if fixed)
|
||||
public delegate void SplitEventHandler(object sender, SplitEventArgs args);
|
||||
#pragma warning restore CA1711 // Identifiers should not have incorrect suffix
|
||||
}
|
||||
|
||||
@@ -17,11 +17,9 @@ namespace FancyZonesEditor.Utils
|
||||
[DllImport("user32.dll")]
|
||||
private static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
|
||||
|
||||
#pragma warning disable SA1310 // Field names should not contain underscore
|
||||
private const int GWL_EX_STYLE = -20;
|
||||
private const int WS_EX_APPWINDOW = 0x00040000;
|
||||
private const int WS_EX_TOOLWINDOW = 0x00000080;
|
||||
#pragma warning restore SA1310 // Field names should not contain underscore
|
||||
|
||||
public static void SetWindowStyleToolWindow(Window hwnd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user