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

Auto-Hide Button Hides All Panes in a Group Instead of One #488

Open
BlueprismWorld opened this issue Sep 2, 2024 · 0 comments
Open

Auto-Hide Button Hides All Panes in a Group Instead of One #488

BlueprismWorld opened this issue Sep 2, 2024 · 0 comments

Comments

@BlueprismWorld
Copy link

My layout includes multiple panes in both the left and right panels, and I've set the CanAutoHide property to True for each pane. However, I'm encountering an issue where clicking the auto-hide button on any pane within a LayoutAnchorablePaneGroup causes all the panes in that group to auto-hide together, instead of just the selected one.

Here's a simplified version of my XAML code:

<dock:DockingManager Grid.Row="0">
    <dock:DockingManager.Theme>
        <dock:Vs2013LightTheme/>
    </dock:DockingManager.Theme>

    <dock:LayoutRoot>
        <dock:LayoutPanel Orientation="Vertical">

            <!-- Main Content Area with Top Tabs -->
            <dock:LayoutPanel Orientation="Horizontal">
                <!-- Left Panel -->
                <dock:LayoutAnchorablePaneGroup DockWidth="200">
                    <dock:LayoutAnchorablePane>
                        <dock:LayoutAnchorable Title="Left Panel 1" CanClose="False" CanAutoHide="True">
                            <TextBlock Text="Hello"/>
                        </dock:LayoutAnchorable>
                        <dock:LayoutAnchorable Title="Left Panel 2" CanClose="False" CanAutoHide="True">
                            <TextBlock Text="Hello World"/>
                        </dock:LayoutAnchorable>
                        <dock:LayoutAnchorable Title="Left Panel 3" CanClose="False" CanAutoHide="True">
                        </dock:LayoutAnchorable>
                    </dock:LayoutAnchorablePane>
                </dock:LayoutAnchorablePaneGroup>

                <!-- Main Document Area -->
                <dock:LayoutDocumentPane>
                    <dock:LayoutDocument Title="Main Tab 1">
                        <TextBlock Text="Main tab1 content"/>
                    </dock:LayoutDocument>
                    <dock:LayoutDocument Title="Main Tab 2">
                        <TextBlock Text="Content of Main Tab 2" />
                    </dock:LayoutDocument>
                    <dock:LayoutDocument Title="Main Tab 3">
                        <TextBlock Text="Content of Main Tab 3" />
                    </dock:LayoutDocument>
                </dock:LayoutDocumentPane>

                <!-- Right Panel -->
                <dock:LayoutAnchorablePaneGroup DockWidth="200">
                    <dock:LayoutAnchorablePane>
                        <dock:LayoutAnchorable Title="Right Bottom Tab 1" CanClose="False" CanAutoHide="True">
                            <TextBlock Text="Content of Right Bottom Tab 1" />
                        </dock:LayoutAnchorable>
                        <dock:LayoutAnchorable Title="Right Bottom Tab 2" CanClose="False" CanAutoHide="True">
                            <TextBlock Text="Content of Right Bottom Tab 2" />
                        </dock:LayoutAnchorable>
                        <dock:LayoutAnchorable Title="Right Bottom Tab 3" CanClose="False" CanAutoHide="True">
                            <TextBlock Text="Content of Right Bottom Tab 3" />
                        </dock:LayoutAnchorable>
                    </dock:LayoutAnchorablePane>
                </dock:LayoutAnchorablePaneGroup>
            </dock:LayoutPanel>

            <!-- Bottom Panel with Full Width -->
            <dock:LayoutAnchorablePaneGroup Orientation="Horizontal" DockHeight="200">
                <dock:LayoutAnchorablePane>
                    <dock:LayoutAnchorable Title="Bottom Tab 1" CanClose="False" CanAutoHide="True">
                        <TextBlock Text="Content of Bottom Tab 1" />
                    </dock:LayoutAnchorable>
                    <dock:LayoutAnchorable Title="Bottom Tab 2" CanClose="False" CanAutoHide="True">
                        <TextBlock Text="Content of Bottom Tab 2" />
                    </dock:LayoutAnchorable>
                    <dock:LayoutAnchorable Title="Bottom Tab 3" CanClose="False" CanAutoHide="True">
                        <TextBlock Text="Content of Bottom Tab 3" />
                    </dock:LayoutAnchorable>
                </dock:LayoutAnchorablePane>
            </dock:LayoutAnchorablePaneGroup>

        </dock:LayoutPanel>
    </dock:LayoutRoot>
</dock:DockingManager>
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

1 participant