views:

33

answers:

1

hi all, I need your help :-)

I'm developping a windows phone 7 application. In this application, I have a Pivot Control. In this Pivot Control, I've PivotItem (of course ^^). In one of those pivot item I have a map control. So here is the hierarchy in XAML :

<Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Pivot Control-->
        <controls:Pivot TitleTemplate="{StaticResource TitleTemplate}"
                        LoadedPivotItem="Pivot_LoadedPivotItem">
            <!--Pivot item Choose'n'Go-->
            <controls:PivotItem Header="Choose'n'Go">
                <maps:Map CredentialsProvider="..." Name="map1"/>
            </controls:PivotItem>

            <!--Pivot item Search-->
            <controls:PivotItem Header="Search">
                <screens:AdvancedSearch />
            </controls:PivotItem>
        </controls:Pivot>
</Grid>

My crash occurs when I flick on the map when the PivotItem is loaded. So if I go to an other page then flick on the map, it crashes. Of course I don't want to flick to the other pivot item when I flick on the map :-)

But where it's strange it's when you load the pivot item then click any where else above the map then flcik on the map, it doesn't crash !!!

Another point : when I don't work with Pivot, it's work also.

I need your help bro'

Skilpit

Edit : Maybe this can help you guys. this is the call stack.

    MyApplic.dll!MyApplic.App.Application_UnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) Line 94 + 0x5 bytes    C#
    System.Windows.dll!MS.Internal.Error.CallApplicationUEHandler(System.Exception e) + 0x30 bytes  
    System.Windows.dll!MS.Internal.Error.GetXresultForUserException(System.Exception ex) + 0x54 bytes   
    System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj, System.IntPtr unmanagedObjArgs, int argsTypeIndex, string eventName) + 0x165 bytes  
    [External Code]