mvvm - RelayCommand and popup in Windows Phone -
i'm writing app windows phone 8.0 , have problem relaycommand mvvm toolkit light , popup.
i have longlistselector on popup:
<popup x:name="popup" grid.row="0" grid.rowspan="3" opened="popupopened"> <grid> <scrollviewer grid.row="2" margin="10"> <phone:longlistselector itemssource="{binding itemsselections}" itemtemplate="{staticresource detailsitemtemplate}" /> </scrollviewer> </grid> </popup> and item's template:
<datatemplate x:key="detailsitemtemplate"> <button verticalcontentalignment="stretch" horizontalcontentalignment="stretch" margin="5,5,5,5" command="{binding elementname=layoutroot,path=datacontext.itemexecutioncommand}" commandparameter="{binding type}"> </button> </datatemplate> when open popup first time, works fine, canexecute returns false, buttons disabled , disable style applied (foreground gray). but, when close popup , open again, buttons disabled, have normal style (foreground white). executing raisecanexecutechanged method after every popup opening not help. has problem?
Comments
Post a Comment