C
C#14mo 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>
<!-- 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?
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server