C1ComboBox not respecting certain style properties and DynamicResource changes

Posted by: jared.fritsch on 13 December 2017, 9:21 am EST

    • Post Options:
    • Link

    Posted 13 December 2017, 9:21 am EST

    In trying to apply Styles to my C1ComboBox, I noticed some properties were not being set properly.

    <Style
        x:Key="ComboBoxStyle"
        TargetType="input:C1ComboBox">
        <Setter
            Property="TextColor"
            Value="{DynamicResource ComboBoxTextColor}" />
        <Setter
            Property="DropDownBehavior"
            Value="HeaderTap" />
        <Setter
            Property="IsEditable"
            Value="False" />
    </Style>
    
    <input:C1ComboBox
        x:Name="ComboBox1"
        Style="{StaticResource ComboBoxStyle}" />
    

    IsEditable does not work when set through a style in v2.4.20173.234. DropDownBehavior does not work when set through a style in v2.4.20172.195 but seems to have been fixed by v2.4.2017.234. TextColor does not update properly when used with a DynamicResource in v2.4.2017.234. It updates the selected item text, but not the text of each item in the drop down. Most, if not all, of the other color properties do work as expected. There may be other properties that don’t work. I didn’t spend the time to test them all.

    I confirmed this to be the case on UWP and Android.

  • Posted 14 December 2017, 4:40 am EST

    DropDownBorderColor is another one that doesn’t work with DynamicResource, like TextColor. It also doesn’t seem to work whatsoever on Android.

    <input:C1ComboBox
        x:Name="ComboBox1"
        DropDownBorderColor="GreenYellow" />
    

    This was tested with v2.4.2017.234.

  • Posted 14 December 2017, 7:47 am EST

    Thanks, Jared. I’ll research this and talk to the developers about it.

    Kelley

  • Posted 19 December 2017, 6:58 am EST

    Any update on this one, Kelley?

    Another one I found that isn’t working properly is SelectedBackgroundColor. On UWP, setting that doesn’t seem to do anything. The selected item always appears blue. On Android, setting it to a color works, but using DynamicResource does not.

  • Posted 20 December 2017, 5:34 am EST

    Hi Jared

    No, I don’t have anything to report at this point. I reproduced the separate issues and sent them to the devs, but I don’t have anything further to say about it yet. I think our first priority will be to fix the broken properties you’ve come across, then we’ll see what we can do about addressing the Style and DynamicResource interactions.

    Thanks

    Kelley

  • Posted 26 January 2018, 2:19 am EST

    Hi Jared

    The DropDownBorderColor and DropDownBorderWidth properties should be working correctly on Android in build 2.5.20173.241 which is now live on nuget.org. I believe there’s still some work to be done as far as the controls respecting styles, but these properties should be reliable now.

    Thanks

    Kelley

  • Posted 26 January 2018, 6:26 am EST

    Works great - thanks, Kelley!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels