Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: CheckComboBox: Setting "Delimiter" to anything other than a comma

$
0
0
I have updated the title of this discussion following some further discovery...

If I change the Delimiter property of the CheckComboBox back to a comma (","), and make the corresponding changes within the model, the control works as expected. If I try and set the delimiter to anything other than a comma (I say anything, I have tried a space, a colon and a forward slash), the control does not work any more.

Working (updates to above)...
public class Model {
    public String Surcharges {
        get { return (this.surcharges ?? String.Empty).Replace(@" ", @","); }
        set { this.surcharges = (value ?? String.Empty).Replace(@",", @" "); }
    }
}

<et:CheckComboBox Delimiter=","
    DisplayMemberPath="PalletNetworkSurchargeCode"
    ItemsSource="{Binding Path=SurchargeOptions}"
    MinWidth="150"
    SelectedValue="{Binding Path=Surcharges}"
    ValueMemberPath="PalletNetworkSurchargeCode" />
Not working (similar updates to the above)...
public class Model {
    public String Surcharges {
        get { return (this.surcharges ?? String.Empty).Replace(@" ", @"/"); }
        set { this.surcharges = (value ?? String.Empty).Replace(@"/", @" "); }
    }
}

<et:CheckComboBox Delimiter="/"
    DisplayMemberPath="PalletNetworkSurchargeCode"
    ItemsSource="{Binding Path=SurchargeOptions}"
    MinWidth="150"
    SelectedValue="{Binding Path=Surcharges}"
    ValueMemberPath="PalletNetworkSurchargeCode" />

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>