23 lines
560 B
C#
23 lines
560 B
C#
namespace BoreholeExtract
|
|
{
|
|
/// <summary>
|
|
/// MainWindow.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class MainWindow
|
|
{
|
|
public MainWindow()
|
|
{
|
|
this.DataContext = new MainViewModel();
|
|
InitializeComponent();
|
|
//Wpf.Ui.Appearance.SystemThemeWatcher.Watch(this);
|
|
}
|
|
private void ScrollToBottom()
|
|
{
|
|
if (LogBox.Items.Count > 0)
|
|
{
|
|
LogBox.ScrollIntoView(LogBox.Items[LogBox.Items.Count - 1]);
|
|
}
|
|
}
|
|
}
|
|
}
|