Can you add some new validation rules?

Jun 20, 2013 at 9:25 AM
I use Alfa in my project, but I can not set to my combobox "required" rule.

You know, user must select option in combobox.
I bind items from List<MyClass>.
Coordinator
Jun 21, 2013 at 12:47 PM
Hi virusxd,

I created work item for this solution [workitem:11890].

It will be implemented in 48 hours and will be published in next version at monday (24 june 2013).
Coordinator
Jun 24, 2013 at 5:25 AM
Your problem was resolved.

To force check validation rules you can use (you can use comboBox name rather than "this" keyword):
this.TryUpdateSource( );
Test implementation:
        <ComboBox x:Name="comboBox">
            <ComboBox.Items>
                <ComboBoxItem Content="1" />
                <ComboBoxItem Content="2" />
                <ComboBoxItem Content="3" />
            </ComboBox.Items>
            <ComboBox.SelectedItem>
                <Binding Path="MyComboFiled">
                    <Binding.ValidationRules>
                        <ValidationRules:RequiredValidationRule/>
                    </Binding.ValidationRules>
                </Binding>
            </ComboBox.SelectedItem>
        </ComboBox>
Jun 24, 2013 at 4:12 PM
Thank you ;)