diff --git a/ULogViewer/Controls/AppOptionsDialog.axaml.cs b/ULogViewer/Controls/AppOptionsDialog.axaml.cs index b17934ad..e673efa7 100644 --- a/ULogViewer/Controls/AppOptionsDialog.axaml.cs +++ b/ULogViewer/Controls/AppOptionsDialog.axaml.cs @@ -186,7 +186,7 @@ protected override void OnOpened(EventArgs e) }; if (initControl != null) { - this.rootScrollViewer.ScrollToContent(initControl); + this.rootScrollViewer.ScrollIntoView(initControl); if (initControl is Avalonia.Controls.TextBlock textBlock) this.AnimateTextBlock(textBlock); else if (initControl is Border headerBorder) @@ -265,7 +265,7 @@ void ScrollToPanel(ToggleButton button) return; // scroll to panel - this.rootScrollViewer.SmoothScrollToContent(panel); + this.rootScrollViewer.SmoothScrollIntoView(panel); // update navigation bar this.InvalidateNavigationBar(); diff --git a/ULogViewer/Controls/LogProfileEditorDialog.axaml.cs b/ULogViewer/Controls/LogProfileEditorDialog.axaml.cs index 039c266b..0b0b3d97 100644 --- a/ULogViewer/Controls/LogProfileEditorDialog.axaml.cs +++ b/ULogViewer/Controls/LogProfileEditorDialog.axaml.cs @@ -1710,7 +1710,7 @@ void ScrollToPanel(ToggleButton button) return; // scroll to panel - this.baseScrollViewer.SmoothScrollToContent(panel); + this.baseScrollViewer.SmoothScrollIntoView(panel); // update navigation bar this.InvalidateNavigationBar(); diff --git a/ULogViewer/Controls/LogProfileSelectionDialog.axaml.cs b/ULogViewer/Controls/LogProfileSelectionDialog.axaml.cs index bb4b7aa0..8fbccd2b 100644 --- a/ULogViewer/Controls/LogProfileSelectionDialog.axaml.cs +++ b/ULogViewer/Controls/LogProfileSelectionDialog.axaml.cs @@ -888,7 +888,7 @@ void ScrollToLogProfilesPanel(ToggleButton button) return; // scroll to panel - this.scrollViewer.SmoothScrollToContent(panel); + this.scrollViewer.SmoothScrollIntoView(panel); // update navigation bar this.InvalidateNavigationBar(); diff --git a/ULogViewer/ULogViewer.csproj b/ULogViewer/ULogViewer.csproj index 67a7abfa..546685bf 100644 --- a/ULogViewer/ULogViewer.csproj +++ b/ULogViewer/ULogViewer.csproj @@ -67,9 +67,9 @@ - - - + + +