mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 12:15:42 +08:00
39 lines
947 B
C#
39 lines
947 B
C#
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()
|
|
{
|
|
this.InitializeComponent();
|
|
this.VersionTextBlock.Text = " " + BuildInfo.Version + " " + BuildInfo.HeadShaShort;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|