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
680
xamComboBox ValueToDisplayTextConverter/ValueToTextConverter
posted

Hi

When I select a value in the combobox, the text converters run fine.

But if I set the value in the underlying viewmodel to null, the text converters do not run, even though the combobox now shows an empty value (instead of populating from the nullToPlaceholderTextConverter.)

Is this a bug, or am I missing something? ... thanks in advance...

                    <igEditors:XamComboEditor
                        x:Name="cmbExample"
                        Grid.Column="1"
                        ValueToDisplayTextConverter="{StaticResource nullToPlaceholderTextConverter}"
                        ValueToTextConverter="{StaticResource nullToPlaceholderTextConverter}"
                        ItemsSource="{Binding Path=ExampleList, Mode=OneWay}"
                        Value="{Binding Path=Example, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"
                        ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Value}"
                        Validation.ErrorTemplate="{x:Null}" />

  • 5600
    Offline posted

    Hi,

    Could you please provide small isolated project that reproduces the issue that you describe?

    Thanks,

    Anastas