Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Wrapping in XamComboEditor
posted

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?

Parents
No Data
Reply
  • 9694
    posted

    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,

Children
No Data