Neutronium icon indicating copy to clipboard operation
Neutronium copied to clipboard

ResizeGrip control

Open Tywele opened this issue 5 years ago • 2 comments

When setting the ResizeMode of the WPF window element to "CanResizeWithGrip" it doesn't show a ResizeGrip control.

Can something like this be implemented for Neutronium?

Tywele avatar Apr 01 '19 10:04 Tywele

It would be good if one can resize the window by a specific drag-area instead of a 1-pixel window border, which is nearly impossible to hit on 4k screens with scaling enabled.

delasource avatar Apr 03 '19 08:04 delasource

The chromeless behaviour is in part provided by this class in Neutronium: Chromeless.css which in turns uses internally Wpf WindowChrome[https://docs.microsoft.com/en-us/dotnet/api/system.windows.shell.windowchrome?view=netframework-4.7.2]. It seems that the static methods WindowChrome.SetResizeGripDirection can be used to set a custom ResizeGrip. So that migth be possible. I will take a look in the mid-term. @Tywele if you could experiment a solution based on this suggestion in the menawhile and give me some feedback it would be awesome.

@genyx regarding the resize border border, it can be changed this way

<i:Interaction.Behaviors>
    <neutronium:Chromeless Thickness="3" />
</i:Interaction.Behaviors>

David-Desmaisons avatar Apr 14 '19 23:04 David-Desmaisons