1

Closed

Sliding finger over OdcListBoxItem in Pivot control shows undesired jumplist

description

Sliding finger over OdcListBoxItem (IsHeader) in Pivot control shows jumplist even though it is desired to change Pivot item.
 
In OdcListBoxItem class OnMouseLeftButtonDown, OnMouseLeftButtonUp should be changed to OnManipulationCompleted like:
 
protected override void OnManipulationCompleted(ManipulationCompletedEventArgs e)
{
if (IsHeader && !e.IsInertial)
{
    OdcListBox box = GetParentOdcListBox();
    if (box != null && box.IsEnabled)
    {
        e.Handled = true;
        box.OnHeaderItemTap(this);
    }
}
base.OnManipulationCompleted(e);
}
 
Thanks for the great control!
Closed May 18, 2011 at 7:44 PM by Tom69
obsolete due to refactored version

comments

ebinans wrote Nov 25, 2010 at 7:14 AM

Doing that in such manner has one more advantage- setting e.Handled to true makes sense now, SelectionChanged event is not fired if clicked on Header item.

wrote Nov 25, 2010 at 7:16 AM

wrote May 18, 2011 at 7:44 PM

wrote Feb 13, 2013 at 1:34 AM

wrote May 14, 2013 at 11:49 PM