c# - "ReorderListBoxItem must have a DragHandle ContentPresenter part." issue -


we working on windows phone 8 app , try use reorder list box control. previous version of our app it's working. now, when bind collection reorder list box, i've got exception "system.invalidoperationexception"

in details, see message.

system.invalidoperationexception: reorderlistboxitem must have draghandlecontentpresenter part. @ reorderlistboxdemo.reorderlistboxitem.onapplytemplate()}

if see such problem or know - please help. use mvvm light , bind data through viewmodel. raw binding not working @ all. sorry russian english. :)

the control requires setter property="draghandletemplate". copy base itemcontainerstyle codeplex page of control , extend required:

<rlb:reorderlistbox.itemcontainerstyle>     <style         targettype="rlb:reorderlistboxitem">         <setter             property="draghandletemplate">             <setter.value>                 <datatemplate>                     <canvas                         width="52"                         height="48"                         background="transparent">                         <polygon                             fill="gray"                             points="16,20 4,20 22,4 22,44 16,44" />                         <polygon                             fill="gray"                             points="32,28 44,28 26,44 26,4 32,4" />                     </canvas>                 </datatemplate>             </setter.value>         </setter>     </style> </rlb:reorderlistbox.itemcontainerstyle> 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -