This project has moved and is read-only. For the latest updates, please go here.
1
Vote

ListPicker An exception of type 'System.ArgumentException' occurred in System.Windows.ni.dll

description

Error Message in Debugger:
An exception of type 'System.ArgumentException' occurred in System.Windows.ni.dll and wasn't handled before a managed/native boundary.

Visual Studio Express 2012 for Windows Phone.
NuGet v2.8.50313.31
WPTools v4.2013.08.16

XAML throws exception with following code:
        <kit:ListPicker x:Name="MenuList" SelectionChanged="MenuList_SelectionChanged"
                        BorderThickness="1" Margin="10,0,60,0"
                        Header="Help Menu">
            <kit:ListPickerItem FontSize="{StaticResource PhoneFontSizeMediumLarge}" Margin="30,0,0,0"
                   Content="{Binding Path=LocalizedResources.IntroductionLabel,Source={StaticResource LocalizedStrings}}" />
            <kit:ListPickerItem  FontSize="{StaticResource PhoneFontSizeMediumLarge}" Margin="30,0,0,0"
                   Content="{Binding Path=LocalizedResources.UsingSettingsLabel,Source={StaticResource LocalizedStrings}}" />
            <kit:ListPickerItem  FontSize="{StaticResource PhoneFontSizeMediumLarge}" Margin="30,0,0,0"
                   Content="{Binding Path=LocalizedResources.KnowledgeBasesLabel,Source={StaticResource LocalizedStrings}}" />
            <kit:ListPickerItem  FontSize="{StaticResource PhoneFontSizeMediumLarge}" Margin="30,0,0,0"
                   Content="{Binding Path=LocalizedResources.EnteringDataLabel,Source={StaticResource LocalizedStrings}}" />
            <kit:ListPickerItem  FontSize="{StaticResource PhoneFontSizeMediumLarge}" Margin="30,0,0,0"
                   Content="{Binding Path=LocalizedResources.UsingFavoritesLabel,Source={StaticResource LocalizedStrings}}" />
            <kit:ListPickerItem  FontSize="{StaticResource PhoneFontSizeMediumLarge}" Margin="30,0,0,0"
                   Content="{Binding Path=LocalizedResources.UsingFavoritesLabel,Source={StaticResource LocalizedStrings}}" />
            <kit:ListPickerItem  FontSize="{StaticResource PhoneFontSizeMediumLarge}" Margin="30,0,0,0"
                   Content="{Binding Path=LocalizedResources.SupportOptionLabel,Source={StaticResource LocalizedStrings}}" />
        </kit:ListPicker>
Exception is thrown when user taps the default menu item showing in order to dropdown the list.

All AppResources are present, populated, and updated in all languages supported by the app. Exception is not caught in any code that I control using the events on this ListPicker. Error crashes the app.

comments