Windows Store Apps – ComboBox : Catastrophic failure

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric




If you read this post, you are probably frustrated and have been redirected by some search machine:)
The error you have sounds like:

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

If you are running in debugger, you will even get more information:

            UnhandledException += (sender, e) =>
                if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();


If you dig more into this error you will find more (nothing saying) details. Here is next example:

This error is cause by following XAML:


            <ComboBox Name="m_CmbSubProject" Grid.Column="3"     
="2" Grid.Row="4" Margin="10, 18"
ItemsSource="{Binding SubProjectList}" 
="Name2" >
                        <StackPanel Orientation="Horizontal" >
                            <TextBlock Text="{Binding Name2}" Margin="2" />
                            <TextBlock Text="{Binding Name}" Margin="2" />


The error is caused by setting of DisplayMemberPath. If the ItemTemplate is used, it is reasonable that this property has not sense. The only problem with this is that this property can easily be ignored by ComboBox team.
If there is behind this some deeper scientific reason, then one human understandable exception would be more than welcome. :)


Posted Aug 06 2013, 07:20 AM by Damir Dobric is a .Net Community Blog powered by daenet GmbH.