1
0
Fork 0

refactor(P5b-4): 큐·이력 리스트 ItemsSource를 선언적 XAML 바인딩으로 전환

- MainWindow.ActiveQueue/PastResults(ObservableCollection) 노출. XAML: ActiveQueueList/PastResultsList의
  ItemsSource를 Window-relative 바인딩으로. 코드비하인드의 ItemsSource= 명령형 할당 제거.
- 검증: 빌드 0/0, 83 테스트 그린, publish 후 메인 창 크래시 없이 로드(언핸들드 로그 없음).
  리스트 렌더(큐/이력 표시)는 GUI 스모크 권장.
This commit is contained in:
Yun Chan 2026-06-02 10:01:24 +09:00
parent 6a4ac2d60c
commit fa385178b2
2 changed files with 9 additions and 4 deletions

View file

@ -438,7 +438,8 @@
</Grid>
<ScrollViewer x:Name="ActiveQueueScroll" VerticalScrollBarVisibility="Auto"
Padding="24" Visibility="Collapsed">
<ItemsControl x:Name="ActiveQueueList">
<ItemsControl x:Name="ActiveQueueList"
ItemsSource="{Binding ActiveQueue, RelativeSource={RelativeSource AncestorType=Window}}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<!-- row hover: FsListRowStyle 느낌(투명→surface hover, hairline 보더) + 좌측 형식색 accent bar -->
@ -527,7 +528,8 @@
<!-- Past Results view (default) -->
<ScrollViewer x:Name="PastResultsView" VerticalScrollBarVisibility="Auto"
Padding="24">
<ItemsControl x:Name="PastResultsList">
<ItemsControl x:Name="PastResultsList"
ItemsSource="{Binding PastResults, RelativeSource={RelativeSource AncestorType=Window}}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Margin="0,0,0,40">