Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide area with Image, header and buttons #1770

Closed
MateuszHamera opened this issue Jan 27, 2024 · 3 comments
Closed

Hide area with Image, header and buttons #1770

MateuszHamera opened this issue Jan 27, 2024 · 3 comments

Comments

@MateuszHamera
Copy link

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

image

I need to show only content.

@XceedBoucherS
Copy link
Collaborator

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
Copy link
Author

MateuszHamera commented Jan 29, 2024

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants