diff --git a/VPet-Simulator.Core/Display/MessageBar.xaml b/VPet-Simulator.Core/Display/MessageBar.xaml
index 660d5df..855c65c 100644
--- a/VPet-Simulator.Core/Display/MessageBar.xaml
+++ b/VPet-Simulator.Core/Display/MessageBar.xaml
@@ -21,10 +21,10 @@
-
+
+ BorderBrush="{x:Null}" BorderThickness="0" SizeChanged="TText_SizeChanged" />
diff --git a/VPet-Simulator.Core/Display/MessageBar.xaml.cs b/VPet-Simulator.Core/Display/MessageBar.xaml.cs
index f01ead0..a52a02e 100644
--- a/VPet-Simulator.Core/Display/MessageBar.xaml.cs
+++ b/VPet-Simulator.Core/Display/MessageBar.xaml.cs
@@ -221,5 +221,10 @@ namespace VPet_Simulator.Core
private void ContextMenu_Opened(object sender, RoutedEventArgs e) => Border_MouseEnter(null, null);
private void ContextMenu_Closed(object sender, RoutedEventArgs e) => Border_MouseLeave(null, null);
+
+ private void TText_SizeChanged(object sender, SizeChangedEventArgs e)
+ {
+ sv.ScrollToEnd();
+ }
}
}
diff --git a/VPet-Simulator.Core/Display/ToolBar.xaml.cs b/VPet-Simulator.Core/Display/ToolBar.xaml.cs
index 761ecf3..35d231d 100644
--- a/VPet-Simulator.Core/Display/ToolBar.xaml.cs
+++ b/VPet-Simulator.Core/Display/ToolBar.xaml.cs
@@ -249,12 +249,12 @@ namespace VPet_Simulator.Core
public event Action EventShow;
public void Show()
{
+ EventShow?.Invoke();
if (m.UIGrid.Children.IndexOf(this) != m.UIGrid.Children.Count - 1)
{
Panel.SetZIndex(this, m.UIGrid.Children.Count);
}
Visibility = Visibility.Visible;
- EventShow?.Invoke();
if (CloseTimer.Enabled)
onFocus = true;
else