Skip to content

Commit

Permalink
misc: todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-mile committed Jan 12, 2024
1 parent 7ffa200 commit 7ec6732
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UFCase/ComponentsPageViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ namespace winrt::UFCase::implementation
if (MatchingComponent(comp_vm))
{
RunUITask([=, lifetime = lifetime] {
// todo: fix the selection bug
// reference: https://stackoverflow.com/questions/12108464/let-listview-scroll-to-selected-item
// also: oneway / twoway binding bizarre
m_selected = comp_vm;
NotifyPropChange(L"SelectedComponent");
Navigated.invoke(*this, m_nav_ctx);
Expand Down

0 comments on commit 7ec6732

Please sign in to comment.