well I'll be danged, that worked

This commit is contained in:
Mike Griese 2021-08-11 10:14:02 -05:00
parent ebf41dd6b2
commit 41e48012a2
3 changed files with 12 additions and 1 deletions

View file

@ -28,6 +28,16 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
{
FindName(L"DefaultTerminalDropdown");
}
}
void Launch::ViewChanging(winrt::Windows::Foundation::IInspectable const&, const winrt::Windows::UI::Xaml::Controls::ScrollViewerViewChangingEventArgs&)
{
auto popups{ winrt::Windows::UI::Xaml::Media::VisualTreeHelper::GetOpenPopupsForXamlRoot(XamlRoot()) };
for (const auto& p : popups)
{
p.IsOpen(false);
}
}
void Launch::OnNavigatedTo(const NavigationEventArgs& e)

View file

@ -24,6 +24,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
Launch();
void OnNavigatedTo(const winrt::Windows::UI::Xaml::Navigation::NavigationEventArgs& e);
void ViewChanging(winrt::Windows::Foundation::IInspectable const& sender, const winrt::Windows::UI::Xaml::Controls::ScrollViewerViewChangingEventArgs& e);
IInspectable CurrentDefaultProfile();
void CurrentDefaultProfile(const IInspectable& value);

View file

@ -33,7 +33,7 @@
</ResourceDictionary>
</Page.Resources>
<ScrollViewer>
<ScrollViewer ViewChanging="ViewChanging">
<StackPanel>
<StackPanel Style="{StaticResource SettingsStackStyle}">
<!-- Default Profile -->