BililiveRecorder/BililiveRecorder.WPF/Pages/LogPage.xaml.cs

39 lines
947 B
C#
Raw Normal View History

2020-11-27 18:51:02 +08:00
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace BililiveRecorder.WPF.Pages
{
/// <summary>
/// Interaction logic for LogPage.xaml
/// </summary>
public partial class LogPage
{
public LogPage()
{
2021-01-01 14:46:27 +08:00
this.InitializeComponent();
2021-01-05 19:08:57 +08:00
this.VersionTextBlock.Text = " " + BuildInfo.Version + " " + BuildInfo.HeadShaShort;
2020-11-27 18:51:02 +08:00
}
private void TextBlock_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
{
try
{
if (sender is TextBlock textBlock)
{
Clipboard.SetText(textBlock.Text);
}
}
catch (Exception)
{
}
}
private void ScrollViewer_Loaded(object sender, RoutedEventArgs e)
{
(sender as ScrollViewer)?.ScrollToEnd();
}
}
}