mirror of
https://github.com/2dust/v2rayN.git
synced 2025-12-24 07:42:43 +00:00
Compare commits
1 commit
8543454c1d
...
ea7ea5a0bf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea7ea5a0bf |
4 changed files with 11 additions and 3 deletions
|
|
@ -46,6 +46,8 @@ public partial class MsgView : ReactiveUserControl<MsgViewModel>
|
|||
|
||||
private void ShowMsg(object msg)
|
||||
{
|
||||
txtMsg.BeginChange();
|
||||
|
||||
//var lineCount = txtMsg.LineCount;
|
||||
//if (lineCount > ViewModel?.NumMaxMsg)
|
||||
//{
|
||||
|
|
@ -62,11 +64,13 @@ public partial class MsgView : ReactiveUserControl<MsgViewModel>
|
|||
{
|
||||
txtMsg.ScrollToEnd();
|
||||
}
|
||||
|
||||
txtMsg.EndChange();
|
||||
}
|
||||
|
||||
public void ClearMsg()
|
||||
{
|
||||
txtMsg.Clear();
|
||||
txtMsg.Text = string.Empty;
|
||||
txtMsg.AppendText("----- Message cleared -----\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
mc:Ignorable="d">
|
||||
|
||||
<UserControl.Resources>
|
||||
<sys:Double x:Key="QrcodeWidth">400</sys:Double>
|
||||
<sys:Double x:Key="QrcodeWidth">500</sys:Double>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid Margin="32" RowDefinitions="Auto,Auto">
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ public partial class MsgView
|
|||
|
||||
private void ShowMsg(object msg)
|
||||
{
|
||||
txtMsg.BeginChange();
|
||||
|
||||
if (txtMsg.LineCount > ViewModel?.NumMaxMsg)
|
||||
{
|
||||
ClearMsg();
|
||||
|
|
@ -57,6 +59,8 @@ public partial class MsgView
|
|||
{
|
||||
txtMsg.ScrollToEnd();
|
||||
}
|
||||
|
||||
txtMsg.EndChange();
|
||||
}
|
||||
|
||||
public void ClearMsg()
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
Style="{StaticResource ViewGlobal}"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources>
|
||||
<sys:Double x:Key="QrcodeWidth">400</sys:Double>
|
||||
<sys:Double x:Key="QrcodeWidth">500</sys:Double>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid Margin="32">
|
||||
|
|
|
|||
Loading…
Reference in a new issue