C#C
C#3y ago
Kai

✅ Dynamic Width

So I have a Dropdown within a stackpanel that lies in a grid..
<!-- Dropdown etc. -->
<Grid Grid.Row="0"
        Grid.ColumnSpan="3">
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="1*"/>
        <ColumnDefinition Width="1*"/>
    </Grid.ColumnDefinitions>

    <StackPanel Grid.Column="0">
        <ComboBox HorizontalAlignment="Center"
                    Margin="20"/>
    </StackPanel>
</Grid>

Problem is it's not being 'stretched'.. How do I do that/what is wrong?
image.png
Was this page helpful?