c# - Item enabled on form load even though it's IsEnabled is bound to a presumably false value -
i expect lastnumberweeks numericupdown disabled on form load isn't. once switch radio selection , forth works properly, not on first load. outside of explicitly setting value in code behind can (i don't want have use code behind because of 1 case).
<radiobutton groupname="dayrangegroup" content="last number of usable occurences:" name="lastusableoccurancesradiobutton" ischecked="true" /> <wincontrols:numericupdown x:name="lastusableoccurances" isenabled="{binding elementname=lastusableoccurancesradiobutton, path=ischecked}" /> <radiobutton groupname="dayrangegroup"content="last number of weeks:" name="lastnumberofweeksradiobutton" /> <wincontrols:numericupdown x:name="lastnumberweeks" isenabled="{binding elementname=lastnumberofweeksradiobutton, path=ischecked}" />
i tested xaml textbox
instead of wincontrols:numericupdown
, working expected on load, it's not problem xaml. try setting updatesourcetrigger propertychanged see if might help. can try using view model bind instead of binding element.
Comments
Post a Comment