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)...
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" />