From 39eb04bbd12540bbc63a5715e7d40c531b056da7 Mon Sep 17 00:00:00 2001 From: Nguyen Duy Date: Tue, 17 Dec 2024 17:17:50 +0700 Subject: [PATCH] feat( mirror): add mirror menu option --- app/Components/DisplayItem.xaml | 2 ++ app/Components/DisplayItem.xaml.cs | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/app/Components/DisplayItem.xaml b/app/Components/DisplayItem.xaml index f121612..2ec7f7f 100644 --- a/app/Components/DisplayItem.xaml +++ b/app/Components/DisplayItem.xaml @@ -48,7 +48,9 @@ + + diff --git a/app/Components/DisplayItem.xaml.cs b/app/Components/DisplayItem.xaml.cs index 62da034..6c3e64e 100644 --- a/app/Components/DisplayItem.xaml.cs +++ b/app/Components/DisplayItem.xaml.cs @@ -196,6 +196,13 @@ namespace ParsecVDisplay.Components }); } + private void MirrorScreen(object sender, RoutedEventArgs e) + { + var mirrorWindow = new MirrorWindow(); + mirrorWindow.MirrorScreen(Display.DeviceName); + mirrorWindow.Show(); + } + private void RemoveDisplay(object sender, RoutedEventArgs e) { Tray.Instance.Invoke(() => Tray.Instance.RemoveDisplay(Display.DisplayIndex));