mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 11:42:22 +08:00
39 lines
931 B
C#
39 lines
931 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()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|