bug fix in WebsocketView, optimization and others

This commit is contained in:
AoshiW
2024-08-16 08:17:43 +02:00
parent b0b5476c48
commit 3a7d39971a
10 changed files with 71 additions and 52 deletions

View File

@@ -55,6 +55,7 @@
<Grid
RowDefinitions="*"
ColumnDefinitions="auto,*">
<!-- TODO change button to sometnig else or disabled "highlighting"-->
<Button
VerticalAlignment="Center"
Classes="Flat"

View File

@@ -14,7 +14,7 @@
Title="Needlework.Net"
Icon="/Assets/app.ico"
Width="1280"
Height="720">
Height="720">
<Grid RowDefinitions="auto,*">
<Grid ColumnDefinitions="auto,auto,*,auto"
Background="Transparent"
@@ -82,6 +82,7 @@
<ItemsRepeater.ItemTemplate>
<DataTemplate>
<Border Margin="4">
<!-- TODO add some background to InfoBar (currently it is (probably) transparent and you can see other things under it) -->
<ui:InfoBar
Title="{Binding Title}"
IsOpen="{Binding IsOpen}"

View File

@@ -31,7 +31,7 @@ public partial class WebsocketView : UserControl, IRecipient<ResponseUpdatedMess
var vm = (WebsocketViewModel)DataContext!;
var viewer = this.FindControl<ListBox>("EventViewer");
viewer!.PropertyChanged += (s, e) => { if (vm.IsTail) viewer.ScrollIntoView(vm.EventLog.Count - 1); };
vm.EventLog.CollectionChanged += (s, e) => { if (vm.IsTail) viewer!.ScrollIntoView(vm.EventLog.Count - 1); };
_responseEditor = this.FindControl<TextEditor>("ResponseEditor");
_responseEditor?.ApplyJsonEditorSettings();