Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7836417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:08:11+00:00 2026-06-02T14:08:11+00:00

I have a grid with 4 columns. In the first column is a Canvas

  • 0

I have a grid with 4 columns. In the first column is a Canvas with a ZIndex of 99 and inside that is an expander. The expand direction is set to RIGHT. When I click on the header, the expander expands OVER TOP of column 2…which is exactly what I want. I’m trying to replicate this (only the opposite direction) inside column 4, so that when expanded, it will show over column 3. Even though I’ve marked the ExpandDirection of the second expander to “Left”, it still expands to the right, and off the screen.

Here is the working expander:

<Canvas Grid.Column="0" Panel.ZIndex="99" Grid.RowSpan="4" VerticalAlignment="Stretch" Margin="0,5"> 
    <Expander ExpandDirection="Right" Style="{DynamicResource OptionsExpanderStyle}" VerticalAlignment="Stretch" Height="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType={x:Type Canvas}}}">
        <Border BorderBrush="Black" BorderThickness="0,0,2,0">
            <Grid Background="White">

            </Grid>
        </Border>
    </Expander>
</Canvas>

Here is the broken expander:

<Canvas x:Name="rightCanvas" Panel.ZIndex="99" Grid.RowSpan="4" Grid.Column="3" Margin="0,5">
    <Expander ExpandDirection="Left" Style="{DynamicResource OptionsExpanderStyle}" HorizontalAlignment="Right" VerticalAlignment="Stretch" Height="{Binding ActualHeight, RelativeSource={RelativeSource AncestorType={x:Type Canvas}}}">
        <Border BorderBrush="Black" BorderThickness="2,0,0,0">
            <Grid Background="White" Width="150">

            </Grid>
        </Border>
    </Expander>
</Canvas>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T14:08:12+00:00Added an answer on June 2, 2026 at 2:08 pm

    Do not use canvas.

    Try something like that:

    <Grid>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <TextBlock Background="LightBlue"
                TextAlignment="Center" Text="Left Column"/>
            <TextBlock Grid.Column="1" Background="LightCoral" 
                TextAlignment="Center" Text="Right Column"/>
        </Grid>
        <Expander Background="LightGray" ExpandDirection="Right"
            Header="LeftMenu" VerticalAlignment="Top" HorizontalAlignment="Left">
            <StackPanel Width="200">
                <TextBlock Text="Some menu stuff"/>
                <TextBlock Text="Some more"/>
            </StackPanel>   
        </Expander>
        <Expander Background="LightGray" ExpandDirection="Left"
            Header="RightMenu" VerticalAlignment="Top" HorizontalAlignment="Right">
            <StackPanel Width="200" >
                <TextBlock Text="Some menu stuff"/>
                <TextBlock Text="Some more"/>
            </StackPanel>
        </Expander>
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a window that contains a grid with two columns. the first column
So I have a ExtJs 4 Grid Panel that has two columns. Column ONE
I have three columns with three values that can be set for each column
I have one grid view that contains some template columns. In this, the first
I have a grid view that has two simple columns, a report number and
I have a weird grid with different height columns. By this I mean, column
Lets say I have 2 columns in my data Grid: Column A: Selected, and
I have a grid. Inside the grid I have a column name as Document
I have a gridview in which the first column in a checkbox. The grid
I have the following simpl WPf grid, two columns, a button in each column,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.