Hi,
I'm using XamComboEditor and I need to enabled TextWrapping. I played a little bit around a got it running for the items which are shown in then dropdown - but not for the selected value:
<igEditors:XamComboEditor.ComboBoxStyle>
<Style TargetType="ComboBox">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Einsatzort}" Width="100" TextWrapping="Wrap" />
</StackPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
Any ideas?
Hello,
Just noticed your post from last year. Sorry it wasn't answered. We received a huge influx of posts last year and we are going through addressing everything that was missed!
Well, seeing that you are targeting the hidden ComboBox in the XamComboEditor by applying a global ComboBox style, you can also try creating a global TextBox style with TextWrapping enabled.
<Style TargetType="{x:Type TextBox}"> <Setter Property="TextWrapping" Value="Wrap"/></Style>
Thank you,