MrB3NiT0
MrB3NiT0

Reputation: 147

combobox width fit to viewbox container

I want my combobox width fit to it's viewbox container.

<Viewbox StretchDirection="Both" Stretch="Uniform" Margin="5,5,5,5">
  <ComboBox ItemsSource="{Binding item}"/>
</Viewbox>

The combobox take width of selected item.

Upvotes: 0

Views: 407

Answers (1)

AmRo
AmRo

Reputation: 883

UPDATED

Change Stretch mode to Fill instead of Uniform.

Output: enter image description here

Upvotes: 1

Related Questions