Dirkster99 / AvalonDock

Our own development branch of the well known WPF document docking library
Microsoft Public License
1.42k stars 321 forks source link

Improved Styling and Resizing Options for Floating Windows #469

Open xoma-zver opened 11 months ago

xoma-zver commented 11 months ago

This PR addresses an issue with the thin border around floating windows in the VS2013 theme, which did match the Visual Studio 2013 style but made it difficult to resize the windows using the mouse. The border thickness was initially set to 1, which was aesthetically pleasing but not practical for resizing.

What's changed: I introduced an additional border with the background color of TabBackground and set it to a thickness of 5, outside of the content area, making the resizing area larger without affecting the visual style of the windows.

Reason for changes: To improve the user experience by making it easier to resize floating windows while maintaining the visual integrity of the VS2013 theme.

Impacts on existing functionality: The visual appearance remains consistent with the theme, but resizing the windows is now more user-friendly.

Additional Information:

No additional actions are required post-merge. This change does not relate to any open issue.

Testing: The changes have been manually tested to ensure that the floating windows can be resized comfortably without compromising the visual style.

HayanAK commented 10 months ago

GJ, I noticed this issue as well, i hope this will be included in the upcoming version. Do you know how i can use this fix already now?

xoma-zver commented 10 months ago

GJ, я тоже заметил эту проблему, надеюсь, она будет включена в следующую версию. Знаете ли вы, как я могу использовать это исправление уже сейчас?

@HayanAK, It is enough to override the style with the key x:Key="{x:Type avalonDockControls:LayoutAnchorableFloatingWindowControl}", as done here:

https://github.com/xoma-zver/AvalonDock/blob/Improved-VS2013-style-behavior/source/Components/AvalonDock.Themes.VS2013/Themes/Generic.xaml

I also recommend watching https://github.com/Wenveo/AakStudio.Shell.UI.Themes.AvalonDock

This is an alternative style library where this problem is also not observed.