Skip to content

Commit 080a668

Browse files
Iezunichenxuuu
authored andcommitted
fix:在开启终端模式,输入框获取/失去焦点时会反复横跳
1 parent 6406a7d commit 080a668

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llcom/View/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
<Frame
5151
Name="dataShowFrame"
5252
Background="Transparent"
53-
BorderBrush="#FF009400"
54-
BorderThickness="0"
53+
BorderBrush="#00000000"
54+
BorderThickness="0.5"
5555
GotFocus="uartDataFlowDocument_GotFocus"
5656
LostFocus="uartDataFlowDocument_LostFocus"
5757
NavigationUIVisibility="Hidden"

llcom/View/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,12 +1342,12 @@ private void removeAllButton_Click(object sender, RoutedEventArgs e)
13421342
private void uartDataFlowDocument_GotFocus(object sender, RoutedEventArgs e)
13431343
{
13441344
if (Tools.Global.setting.terminal)
1345-
dataShowFrame.BorderThickness = new Thickness(0.5);
1345+
dataShowFrame.BorderBrush = new SolidColorBrush(Color.FromRgb(0, 148, 0));
13461346
}
13471347

13481348
private void uartDataFlowDocument_LostFocus(object sender, RoutedEventArgs e)
13491349
{
1350-
dataShowFrame.BorderThickness = new Thickness(0);
1350+
dataShowFrame.BorderBrush = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0));
13511351
}
13521352

13531353
private void uartDataFlowDocument_PreviewTextInput(object sender, TextCompositionEventArgs e)

0 commit comments

Comments
 (0)