Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Commented Issue: NumericUpDown IsEnabled Binding does not work on DataForm if Mode=OneWay [4984]

$
0
0
If Mode is set to TwoWay, the NumericUpDown is enabled/disabled as the check box is checked/unchecked. A text box with Mode=OneWay works as expected.

<dataForm:DataField Label="Override">
<StackPanel Orientation="Horizontal">
<CheckBox x:Name="_enableCheckBox"/>
<TextBox IsEnabled="{Binding IsChecked, ElementName=_enableCheckBox, Mode=OneWay}" Width="75" />
<toolkitInput:NumericUpDown IsEnabled="{Binding IsChecked, ElementName=_enableCheckBox, Mode=OneWay}" Width="75" />
</StackPanel>
</dataForm:DataField>
Comments: ** Comment from web user: icnocop **

I was having the same issue.

As a work-around, I had to specify IsEnabled="{Binding Model.MyBooleanValue, Mode=OneWay}" on the dataform:DataField element itself instead of on the CheckBox in the datafield's content.


Viewing all articles
Browse latest Browse all 801

Trending Articles