Skip to content

Commit

Permalink
Removing DictionaryTheme class and references since it appeared to be…
Browse files Browse the repository at this point in the history
… unused. Cleaned code with CodeMaid.
  • Loading branch information
Dirkster99 committed Jul 8, 2020
1 parent 1a796e5 commit 54be57e
Show file tree
Hide file tree
Showing 140 changed files with 8,081 additions and 7,552 deletions.
3,162 changes: 1,581 additions & 1,581 deletions source/Components/AvalonDock.Themes.Expression/Theme.xaml

Large diffs are not rendered by default.

417 changes: 216 additions & 201 deletions source/Components/AvalonDock/Controls/AnchorablePaneDropTarget.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at https://opensource.org/licenses/MS-PL
************************************************************************/

using AvalonDock.Layout;
using System;
using System.Linq;
using System.Windows.Controls;
using System.Windows;
using AvalonDock.Layout;
using System.Windows.Controls;

namespace AvalonDock.Controls
{
/// <summary>
/// provides a <see cref="Panel"/> that contains the TabItem Headers of the <see cref="LayoutAnchorablePaneControl"/>.
/// provides a <see cref="Panel"/> that contains the TabItem Headers of the <see cref="LayoutAnchorablePaneControl"/>.
/// </summary>
public class AnchorablePaneTabPanel : Panel
{
Expand Down Expand Up @@ -59,7 +59,6 @@ protected override Size ArrangeOverride(Size finalSize)
{
var visibleChildren = Children.Cast<UIElement>().Where(ch => ch.Visibility != System.Windows.Visibility.Collapsed);


double finalWidth = finalSize.Width;
double desideredWidth = visibleChildren.Sum(ch => ch.DesiredSize.Width);
double offsetX = 0.0;
Expand Down Expand Up @@ -105,4 +104,4 @@ protected override void OnMouseLeave(System.Windows.Input.MouseEventArgs e)

#endregion Overrides
}
}
}
11 changes: 7 additions & 4 deletions source/Components/AvalonDock/Controls/AnchorablePaneTitle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at https://opensource.org/licenses/MS-PL
************************************************************************/

using AvalonDock.Layout;
using System.Linq;
using System.Windows.Controls;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using AvalonDock.Layout;

namespace AvalonDock.Controls
{
Expand All @@ -23,10 +23,13 @@ namespace AvalonDock.Controls
public class AnchorablePaneTitle : Control
{
#region fields

private bool _isMouseDown = false;

#endregion fields

#region Constructors

/// <summary>
/// Static class constructor
/// </summary>
Expand Down Expand Up @@ -122,7 +125,7 @@ protected override void OnMouseLeave(MouseEventArgs e)
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);

// Start a drag & drop action for a LayoutAnchorable
if (e.Handled || Model.CanMove == false) return;
var attachFloatingWindow = false;
Expand All @@ -149,4 +152,4 @@ protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

#endregion Overrides
}
}
}
11 changes: 9 additions & 2 deletions source/Components/AvalonDock/Controls/AutoHideWindowManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at https://opensource.org/licenses/MS-PL
************************************************************************/

using AvalonDock.Layout;
using System;
using System.Windows.Threading;
using AvalonDock.Layout;

namespace AvalonDock.Controls
{
Expand All @@ -22,12 +22,15 @@ namespace AvalonDock.Controls
internal class AutoHideWindowManager
{
#region fields

private DockingManager _manager;
private WeakReference _currentAutohiddenAnchor = null;
private DispatcherTimer _closeTimer = null;

#endregion fields

#region constructors

/// <summary>Class constructor from <see cref="DockingManager"/>.</summary>
/// <param name="manager"></param>
internal AutoHideWindowManager(DockingManager manager)
Expand All @@ -39,6 +42,7 @@ internal AutoHideWindowManager(DockingManager manager)
#endregion constructors

#region public methods

/// <summary>Method is invoked to pop put an Anchorable that was in AutoHide mode.</summary>
/// <param name="anchor"><see cref="LayoutAnchorControl"/> to pop out of the side panel.</param>
public void ShowAutoHideWindow(LayoutAnchorControl anchor)
Expand All @@ -65,9 +69,11 @@ public void HideAutoWindow(LayoutAnchorControl anchor = null)
else
System.Diagnostics.Debug.Assert(false);
}

#endregion public methods

#region private methods

private void SetupCloseTimer()
{
_closeTimer = new DispatcherTimer(DispatcherPriority.Background);
Expand All @@ -94,6 +100,7 @@ private void StopCloseTimer()
_manager.AutoHideWindow.Hide();
_currentAutohiddenAnchor = null;
}

#endregion private methods
}
}
}
2 changes: 1 addition & 1 deletion source/Components/AvalonDock/Controls/ContextMenuEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ protected override void OnOpened(System.Windows.RoutedEventArgs e)

#endregion Overrides
}
}
}
Loading

0 comments on commit 54be57e

Please # to comment.