Browse Source

whitespace

pull/3943/head
Dan Walmsley 6 years ago
parent
commit
2501698af1
  1. 14
      src/Avalonia.Controls/Window.cs
  2. 6
      src/Avalonia.Native/WindowImpl.cs
  3. 4
      src/Windows/Avalonia.Win32/WindowImpl.cs

14
src/Avalonia.Controls/Window.cs

@ -69,7 +69,7 @@ namespace Avalonia.Controls
/// </summary>
public class Window : WindowBase, IStyleable, IFocusScope, ILayoutRoot
{
private List<Window> _children = new List<Window>();
private List<Window> _children = new List<Window>();
/// <summary>
/// Defines the <see cref="SizeToContent"/> property.
@ -374,9 +374,9 @@ namespace Avalonia.Controls
}
}
private void CloseInternal ()
private void CloseInternal()
{
foreach(var child in _children.ToList())
foreach (var child in _children.ToList())
{
// if we HandleClosing() before then there will be no children.
child.CloseInternal();
@ -399,9 +399,9 @@ namespace Avalonia.Controls
{
bool canClose = true;
foreach(var child in _children.ToList())
foreach (var child in _children.ToList())
{
if(!child.HandleClosing())
if (!child.HandleClosing())
{
child.CloseInternal();
}
@ -454,7 +454,7 @@ namespace Avalonia.Controls
if (Owner is Window owner)
{
owner.RemoveChild(this);
owner.RemoveChild(this);
}
Owner = null;
@ -720,7 +720,7 @@ namespace Avalonia.Controls
if (Owner is Window owner)
{
owner.RemoveChild(this);
owner.RemoveChild(this);
}
Owner = null;

6
src/Avalonia.Native/WindowImpl.cs

@ -40,7 +40,7 @@ namespace Avalonia.Native
bool IAvnWindowEvents.Closing()
{
if(_parent.Closing != null)
if (_parent.Closing != null)
{
return _parent.Closing();
}
@ -53,7 +53,7 @@ namespace Avalonia.Native
_parent.WindowStateChanged?.Invoke((WindowState)state);
}
void IAvnWindowEvents.GotInputWhenDisabled ()
void IAvnWindowEvents.GotInputWhenDisabled()
{
_parent.GotInputWhenDisabled?.Invoke();
}
@ -71,7 +71,7 @@ namespace Avalonia.Native
_native.Decorations = (Interop.SystemDecorations)enabled;
}
public void SetTitleBarColor (Avalonia.Media.Color color)
public void SetTitleBarColor(Avalonia.Media.Color color)
{
_native.SetTitleBarColor(new AvnColor { Alpha = color.A, Red = color.R, Green = color.G, Blue = color.B });
}

4
src/Windows/Avalonia.Win32/WindowImpl.cs

@ -44,7 +44,7 @@ namespace Avalonia.Win32
private readonly ManagedWindowResizeDragHelper _managedDrag;
#endif
private const WindowStyles WindowStateMask = (WindowStyles.WS_MAXIMIZE | WindowStyles.WS_MINIMIZE);
private const WindowStyles WindowStateMask = (WindowStyles.WS_MAXIMIZE | WindowStyles.WS_MINIMIZE);
private readonly TouchDevice _touchDevice;
private readonly MouseDevice _mouseDevice;
private readonly ManagedDeferredRendererLock _rendererLock;
@ -660,7 +660,7 @@ namespace Avalonia.Win32
private void SetOwnerHandle(IntPtr handle) => SetWindowLongPtr(_hwnd, (int)WindowLongParam.GWL_HWNDPARENT, handle);
private WindowStyles GetWindowStateStyles ()
private WindowStyles GetWindowStateStyles()
{
return GetStyle() & WindowStateMask;
}

Loading…
Cancel
Save