티스토리 뷰
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
kaki104 2015. 1. 28. 22:17에러
System.Exception was unhandled by user code
HResult=-2147418113
Message=Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Source=mscorlib
StackTrace:
at System.Runtime.InteropServices.WindowsRuntime.IVector`1.Clear()
at System.Runtime.InteropServices.WindowsRuntime.VectorToCollectionAdapter.Clear[T]()
at CrossPlatform.Universal.Windows.Behaviors.SelectedItemsBehavior.ViewModelToControl_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.ClearItems()
at System.Collections.ObjectModel.Collection`1.Clear()
at OneSearch.Universal.ViewModels.ProgressPageVM.<OnInitLocalReactiveCommand>b__13(Object obj)
at System.Reactive.AnonymousObserver`1.OnNextCore(T value)
at System.Reactive.ObserverBase`1.OnNext(T value)
at System.Reactive.Subjects.Subject`1.OnNext(T value)
at System.Reactive.Linq.ObservableImpl.Do`1._.OnNext(TSource value)
InnerException:
에러 발생 위치
var control = AssociatedObject as ListViewBase;
//Reset처리
if (e.Action == NotifyCollectionChangedAction.Reset)
{
if (control != null) control.SelectedItems.Clear();
}
에러 발생 원인
GridView control이나 ListView control에서 SelectionMode가 Single인데 SelectedItems를 사용해서 발생한 오류
해결
<GridView ItemsSource="{Binding BackgroundOperationItems}" Padding="120,140,120,50"
ItemTemplateSelector="{StaticResource BackgroundItemTemplateSelector}" Grid.RowSpan="2" SelectionMode="Multiple">
<Interactivity:Interaction.Behaviors>
<Behaviors:SelectedItemsBehavior SelectedItems="{Binding BackgroundSelectedItems}"/>
</Interactivity:Interaction.Behaviors>
</GridView>
'UWP & Windows App' 카테고리의 다른 글
OneSearch Help - 한글 메뉴얼 (0) | 2015.04.23 |
---|---|
OneSearch help (0) | 2015.04.01 |
BackgroundDownloader 이용해서 로컬에 다운로드 받기 (0) | 2014.12.10 |
Privacy & Cookies policy (0) | 2014.12.01 |
Nuget Package error 해결법 (0) | 2014.11.18 |
- Total
- Today
- Yesterday
- .net 5.0
- Microsoft
- XAML
- IOT
- visual studio 2019
- WPF
- uno platform
- #prism
- ef core
- Windows 10
- #MVVM
- .net
- kiosk
- UWP
- Visual Studio 2022
- Build 2016
- C#
- uno-platform
- #Windows Template Studio
- LINQ
- Bot Framework
- Behavior
- ComboBox
- MVVM
- Always Encrypted
- #uwp
- PRISM
- Cross-platform
- windows 11
- dotNETconf
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |