diff --git a/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml b/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml index 3f128dd..abf323b 100644 --- a/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml +++ b/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml @@ -7,10 +7,10 @@ Title="OfCourseIStillLoveYou.DesktopClient"> - - + + - + diff --git a/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml.cs b/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml.cs index 27eae15..74d95f8 100644 --- a/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml.cs +++ b/OfCourseIStillLoveYou.DesktopClient/MainWindow.axaml.cs @@ -4,7 +4,9 @@ using System.Text; using System.Text.Json; using System.Threading.Tasks; +using Avalonia; using Avalonia.Controls; +using Avalonia.Interactivity; using Avalonia.Markup.Xaml; using Avalonia.Media.Imaging; using Avalonia.Threading; @@ -191,5 +193,20 @@ private void UpdateCameraList(List cameraIds) } } + + private void ImgCameraTexture_OnDoubleTapped(object? sender, RoutedEventArgs e) + { + + Dispatcher.UIThread.InvokeAsync(() => + { + var textInfo = this.FindControl("TextInfo"); + var cbCameras = this.FindControl("cbCameras"); + var labelCameras = this.FindControl