xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.91k stars 878 forks source link

Hide area with Image, header and buttons #1770

Closed MateuszHamera closed 10 months ago

MateuszHamera commented 10 months ago

How to hide this all this area with Image, header and buttons?

image

I need to show only content.

XceedBoucherS commented 10 months ago

Hi,

I believe you are talking about the AvalonDock control. And I believe this is for a LayoutAnchorable pane ?

Currently, it is not possible to remove the header Bar. This is helpful in order to grab the LayoutAnchorable and make it float. If you still wish to remove the header part of a Layoutanchorable, you could create a new template for the LayoutAnchorableControl.

image

Thank you

MateuszHamera commented 10 months ago

Hi, Yes I think about LayoutAnchorablePane and LayoutDocumentPane.

I use them in this way:

<AvalonDock:LayoutRoot>
    <AvalonDock:LayoutPanel>
        <AvalonDock:LayoutAnchorablePane x:Name="ToolsRegion" 
                                         DockMinWidth="150" 
                                         DockWidth="350">
        </AvalonDock:LayoutAnchorablePane>
        <AvalonDock:LayoutDocumentPane x:Name="MainRegion"/>
        <AvalonDock:LayoutAnchorablePane x:Name="PropertiesRegion" 
                                         DockMinWidth="150" 
                                         DockWidth="350"/>
    </AvalonDock:LayoutPanel>
</AvalonDock:LayoutRoot>

Your code remove all header ? How to do for LayoutDocumentPane ? Please can you deliver me your source code? Thanks!

XceedBoucherS commented 10 months ago

Hi,

All souce code is available on Github. Just download it and reference it in your project. You will be able to modify it. You will find what is related to the visual of AvalonDock in file: wpftoolkit/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Themes/Default.xaml

Thank you