combobox - WPF combo box update source trigger -


i've added triggers combobox, i.e.

  • when combo box 'disabled' 'text' property should set '1' , added updatesourcetrigger property changed.

  • when combo box 'enabled' 'text' property should selected 1 , added update source trigger property changed.

but problem i'm unable call update source trigger when combo box disabled , 'text' property set '1'.

below xaml code snippet:

<combobox name="cmbintervals"                         grid.row="5"                         grid.column="1"                         width="150"                         horizontalalignment="left"                         verticalalignment="top"                         isenabled="{binding elementname=chkrollinginterval,                                               path=ischecked}"                         itemssource="{binding source={x:static es:masterparameters.instance},                                                 path=noofintervals}"                          tag="{binding path=[noofintervals], mode=twoway, updatesourcetrigger=propertychanged}"                         >                   <combobox.style>                     <style targettype="{x:type combobox}">                       <style.triggers>                         <trigger property="isenabled" value="false">                         <setter property="text" value="1"/>                         <setter property="text" value="{binding relativesource={relativesource self}, path=tag, mode=twoway, updatesourcetrigger=default}"/>                       </trigger>                       <trigger property="isenabled" value="true">                         <setter property="text" value="{binding relativesource={relativesource self}, path=tag, mode=twoway, updatesourcetrigger=propertychanged}"/>                       </trigger>                       </style.triggers>                    </style>                 </combobox.style>               </combobox> 

from above xaml code when ever updated 'text' property '1' combo box 'disabeld' mode need update '1' value source property i.e. 'tag' , there 'noofintervals' doesn't happening.

thanks, nag


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -