0

I am using Microsoft.Windows.Shell in order to get rounded form:

xmlns:shell="clr-namespace:Microsoft.Windows.Shell;assembly=Microsoft.Windows.Shell"

<shell:WindowChrome.WindowChrome>
    <shell:WindowChrome
        ResizeBorderThickness="0"
        CaptionHeight="0"
        CornerRadius="15,15,15,15"
        GlassFrameThickness="0">
    </shell:WindowChrome>
</shell:WindowChrome.WindowChrome>

And although i define this 2:

ShowCloseButton="True"
ShowMinButton="True"

I only can see the Close button.

Mininize button is missing

falukky
  • 1,099
  • 2
  • 14
  • 34
  • This assembly is not being maintained, I'd assume they gave up on it when Win10 was released. Its visual style can no longer be tinkered with. Remarkable that you see a Close button at all, given that you set the caption height to 0. I suspect you see the Win10 chrome. – Hans Passant Jul 01 '18 at 13:56
  • I am using Windows 10, any suggestions what to do ? – falukky Jul 01 '18 at 13:58
  • Just the obvious ones, delete that assembly from your disk so it can do no further harm. And google "wpf custom window chrome", lotsa hits. – Hans Passant Jul 01 '18 at 14:17
  • Why it could do harm ? – falukky Jul 01 '18 at 16:23
  • When setting the GlassFrameThickness property to 0, you are supposed to create custom buttons yourself: https://stackoverflow.com/questions/44190041/show-default-window-buttons-on-wpf-window-using-windowchrome – mm8 Jul 02 '18 at 10:08

0 Answers0