Toolwindwo without icon

Docking/MDI for WPF Forum

Posted 10 years ago by Jack Stephenson
Version: 14.1.0602
Avatar

I want to popup a wpf toolwindow as a dialog in my app.

I also want it to be themed like the rest of my app (Metro)

So I set windwo style to ToolWIndow

And added the Theme Chrome.

WIndow looks ok except there is a blank space for the icon.

Dont want it.

 

What am I doing wrong?

 

<Window x:Class="NDS.ApplicationFactory.MetaModel.Target.DotNet.PropertyEditors.AttributesDialog"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"
               Width="300"
               Height="300"
               ResizeMode="CanResize"
               ShowInTaskbar="False"
               Topmost="True"
               Title="Attributes"
               WindowStartupLocation="CenterOwner"
              WindowStyle="ToolWindow">
  <themes:WindowChrome.Chrome>
        <themes:WindowChrome HasMaximizeButton="True"
                                                 HasMinimizeButton="False"
                                                 HasRestoreButton="True"
                                                  HasOuterGlow="False">
        </themes:WindowChrome>
  </themes:WindowChrome.Chrome>
</Window>

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jack,

Sorry but we don't have a dedicated tool window style at this time.  That being said, for the next version, if we see that you set WindowStyle="ToolWindow" then we will hide the icon, which should help your scenario.

In the meantime, you would need to clone our default style, update it to suit your needs, and use the modified style/template instead.


Actipro Software Support

Posted 10 years ago by Jay Hill
Avatar

The easiest way I found to collapse the blank icon space is by specifying the IconMargin:

 <themes:WindowChrome IconMargin="0"
                      … />
The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.