question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ComboBox content outside window

See original GitHub issue

Hi,

I’m using MaterialDesignInXamlToolkit to make a small app. I have finished configuring material in my app and it worked. But there is a trouble of ComboBox When I make my ComboBox in Grid to be full-width, as long as I open the ComboBox, the context menu display out-side its container.

Here is howit looks: combobox

This is my Login.xaml in which I placed that ComboBox:

<Page x:Class="MainClient.View.Login"
    [..Declaration..]>

    <StackPanel>
        
        ...

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="256" />
                <ColumnDefinition Width="46*" />
                <ColumnDefinition Width="51*" />
                <ColumnDefinition Width="175*" />
            </Grid.ColumnDefinitions>

            <TextBlock Text="{lex:Loc TITLE_LANGUAGE}" />
            <ComboBox Grid.Column="1"
                      ItemsSource="{Binding AvailableLanguages}"
                      SelectedItem="{Binding SelectedLanguage}" Grid.ColumnSpan="3">
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Path=Key, Converter={StaticResource LanguageTranslatorConverter}}" />
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
        </Grid>

    </StackPanel>
</Page>

Here is my REPO

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Keboocommented, Jan 22, 2019

@redplane there is also an attached property that you can set that will cause the popup with the items to show below combo box rather than around it.

<ComboBox materialDesign:ComboBoxAssist.ClassicMode="True" />
0reactions
Keboocommented, Sep 24, 2021

This should be resolved with the ComboBox redesign in 4.2.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

combobox dropdown window can show beyond the ...
1 Answer 1 · The pop-up is a top-level window which has the same parent as the control. · When the pop-up is...
Read more >
Cant select items in a WPF combobox(VSTO Addin) if they ...
When using a Combobox in a WPF UserControl via ElementHost for a VSTO AddIn, the Combobox items that are outside of the parent...
Read more >
Select-Only Combobox Example | APG | WAI
The value is set when users press Space , Enter , or Tab , or when focus moves out of the combobox. The...
Read more >
How to Use Combo Boxes
This combo box contains an array of strings, but you could just as easily use icons instead. To put anything else into a...
Read more >
modal content not able scroll when overflow =initial/visible ...
However I have a Combobox at the end of the form which I am not able to view the values, even when I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found