这是indexloc提供的服务,不要输入任何密码
Skip to content

No header (title) is shown for a LayoutAnchorable #282

@ShuhuaGao

Description

@ShuhuaGao

Version: 4.51.1
Visual studio 2019 and .Net 5.0

Consider the following simple MWE

<Window x:Class="Dirkster99AvalonDock.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ad="https://github.com/Dirkster99/AvalonDock"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:local="clr-namespace:Dirkster99AvalonDock"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        Title="MainWindow"
        Width="800"
        Height="450"
        mc:Ignorable="d">
    <Grid>
        <ad:DockingManager x:Name="dockManager">
            <ad:LayoutRoot>
                <ad:LayoutPanel Orientation="Vertical">
                    <ad:LayoutDocumentPane>
                        <ad:LayoutDocument Title="doc" CanFloat="True">
                            <Border Background="AliceBlue" />
                        </ad:LayoutDocument>
                    </ad:LayoutDocumentPane>
                    <ad:LayoutAnchorablePane DockHeight="100">
                        <ad:LayoutAnchorable Title="anchorable">
                            <Border Background="Gold" />
                        </ad:LayoutAnchorable>
                    </ad:LayoutAnchorablePane>
                </ad:LayoutPanel>
            </ad:LayoutRoot>
        </ad:DockingManager>
    </Grid>
</Window>

The result is
image
As shown above, the header of the LayoutAnchorable is not shown, which is supposed to display the title.
Is this a bug, or did I miss anything?

[NOTE] If I simply change the avalon dock to the one in xceed wpftookit, then the title of the anchorable pane is shown as expected.
Snipaste_2021-06-28_19-26-54

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions