chore: use file-scoped namespace
This commit is contained in:
1 parent
99d2fafb72
commit
bbf1b7d4c6
748 files changed
+57929
-58678
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -4,39 +4,38 @@ using System.Windows.Controls;
|
||||
using HandyControl.Tools;
|
||||
using HandyControl.Tools.Interop;
|
||||
|
||||
namespace HandyControl.Controls
|
||||
namespace HandyControl.Controls;
|
||||
|
||||
public sealed class GrowlWindow : Window
|
||||
{
|
||||
public sealed class GrowlWindow : Window
|
||||
internal Panel GrowlPanel { get; set; }
|
||||
|
||||
internal GrowlWindow()
|
||||
{
|
||||
internal Panel GrowlPanel { get; set; }
|
||||
WindowStyle = WindowStyle.None;
|
||||
AllowsTransparency = true;
|
||||
|
||||
internal GrowlWindow()
|
||||
GrowlPanel = new StackPanel
|
||||
{
|
||||
WindowStyle = WindowStyle.None;
|
||||
AllowsTransparency = true;
|
||||
VerticalAlignment = VerticalAlignment.Top
|
||||
};
|
||||
|
||||
GrowlPanel = new StackPanel
|
||||
{
|
||||
VerticalAlignment = VerticalAlignment.Top
|
||||
};
|
||||
|
||||
Content = new ScrollViewer
|
||||
{
|
||||
VerticalScrollBarVisibility = ScrollBarVisibility.Hidden,
|
||||
IsInertiaEnabled = true,
|
||||
Content = GrowlPanel
|
||||
};
|
||||
}
|
||||
|
||||
internal void Init()
|
||||
Content = new ScrollViewer
|
||||
{
|
||||
var desktopWorkingArea = SystemParameters.WorkArea;
|
||||
Height = desktopWorkingArea.Height;
|
||||
Left = desktopWorkingArea.Right - Width;
|
||||
Top = 0;
|
||||
}
|
||||
|
||||
protected override void OnSourceInitialized(EventArgs e)
|
||||
=> InteropMethods.IntDestroyMenu(this.GetHwndSource().CreateHandleRef());
|
||||
VerticalScrollBarVisibility = ScrollBarVisibility.Hidden,
|
||||
IsInertiaEnabled = true,
|
||||
Content = GrowlPanel
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
internal void Init()
|
||||
{
|
||||
var desktopWorkingArea = SystemParameters.WorkArea;
|
||||
Height = desktopWorkingArea.Height;
|
||||
Left = desktopWorkingArea.Right - Width;
|
||||
Top = 0;
|
||||
}
|
||||
|
||||
protected override void OnSourceInitialized(EventArgs e)
|
||||
=> InteropMethods.IntDestroyMenu(this.GetHwndSource().CreateHandleRef());
|
||||
}
|
||||
Reference in new issue
Block a user