From bccd0e02d135c5911a549751f5e54a80c3efd100 Mon Sep 17 00:00:00 2001 From: Tim Kurtzman <49733346+timkur@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:59:53 -0700 Subject: [PATCH 1/2] Tooltips for the bar items --- tools/PI/DevHome.PI/BarWindowHorizontal.xaml | 6 ++--- tools/PI/DevHome.PI/BarWindowVertical.xaml | 8 ++++--- .../DevHome.PI/Strings/en-us/Resources.resw | 24 ++++++++++++------- .../ViewModels/BarWindowViewModel.cs | 5 ++++ 4 files changed, 29 insertions(+), 14 deletions(-) diff --git a/tools/PI/DevHome.PI/BarWindowHorizontal.xaml b/tools/PI/DevHome.PI/BarWindowHorizontal.xaml index 06c36c5760..784ed28984 100644 --- a/tools/PI/DevHome.PI/BarWindowHorizontal.xaml +++ b/tools/PI/DevHome.PI/BarWindowHorizontal.xaml @@ -33,7 +33,7 @@ - + - diff --git a/tools/PI/DevHome.PI/BarWindowVertical.xaml b/tools/PI/DevHome.PI/BarWindowVertical.xaml index 5ef7f3c187..4bfd5ab645 100644 --- a/tools/PI/DevHome.PI/BarWindowVertical.xaml +++ b/tools/PI/DevHome.PI/BarWindowVertical.xaml @@ -29,14 +29,16 @@ - diff --git a/tools/PI/DevHome.PI/Strings/en-us/Resources.resw b/tools/PI/DevHome.PI/Strings/en-us/Resources.resw index 2b44627fc7..ccc265a76d 100644 --- a/tools/PI/DevHome.PI/Strings/en-us/Resources.resw +++ b/tools/PI/DevHome.PI/Strings/en-us/Resources.resw @@ -129,14 +129,6 @@ Restore Tooltip for the restore button in the BarWindow - - End PI service - The label for the close all menu item flyout. This will cause the program to terminate. - - - Close the PI window and the service - The tooltip for the close all menu item flyout. This will cause the program to terminate. - Pin A label for the menuitem to pin a tool on the bar. @@ -849,4 +841,20 @@ Edit or delete existing tools Header for the setting item to edit or delete tools from the product. + + Select a process to investigate + Describes using a button in PI's UX to investigate another process running on the system + + + Attach the diagnostic bar to the target application + Describes using a button in PI's UX + + + Dev Home PI + The product name + + + Close + Describes a button that will close PI's window + \ No newline at end of file diff --git a/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs b/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs index 8f0a24dfb8..a598a2a55a 100644 --- a/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs +++ b/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs @@ -51,6 +51,9 @@ public partial class BarWindowViewModel : ObservableObject [ObservableProperty] private Visibility _appBarVisibility = Visibility.Visible; + [ObservableProperty] + private string? _applicationName; + [ObservableProperty] private int _applicationPid; @@ -85,6 +88,7 @@ public BarWindowViewModel() if (process != null) { + ApplicationName = process.ProcessName; ApplicationPid = process.Id; ApplicationIcon = TargetAppData.Instance.Icon; } @@ -186,6 +190,7 @@ private void TargetApp_PropertyChanged(object? sender, PropertyChangedEventArgs if (process is not null) { ApplicationPid = process.Id; + ApplicationName = process.ProcessName; } }); } From 36b299872a1c809cf853e3eb0dac2e860bf7057f Mon Sep 17 00:00:00 2001 From: Tim Kurtzman <49733346+timkur@users.noreply.github.com> Date: Tue, 4 Jun 2024 13:33:42 -0700 Subject: [PATCH 2/2] PR updates --- tools/PI/DevHome.PI/BarWindowHorizontal.xaml | 2 +- tools/PI/DevHome.PI/BarWindowVertical.xaml | 2 +- tools/PI/DevHome.PI/Strings/en-us/Resources.resw | 2 +- tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/PI/DevHome.PI/BarWindowHorizontal.xaml b/tools/PI/DevHome.PI/BarWindowHorizontal.xaml index 784ed28984..a6fc0adadb 100644 --- a/tools/PI/DevHome.PI/BarWindowHorizontal.xaml +++ b/tools/PI/DevHome.PI/BarWindowHorizontal.xaml @@ -73,7 +73,7 @@ - diff --git a/tools/PI/DevHome.PI/BarWindowVertical.xaml b/tools/PI/DevHome.PI/BarWindowVertical.xaml index 4bfd5ab645..278d3fa022 100644 --- a/tools/PI/DevHome.PI/BarWindowVertical.xaml +++ b/tools/PI/DevHome.PI/BarWindowVertical.xaml @@ -78,7 +78,7 @@ - diff --git a/tools/PI/DevHome.PI/Strings/en-us/Resources.resw b/tools/PI/DevHome.PI/Strings/en-us/Resources.resw index ccc265a76d..081f93ecd4 100644 --- a/tools/PI/DevHome.PI/Strings/en-us/Resources.resw +++ b/tools/PI/DevHome.PI/Strings/en-us/Resources.resw @@ -145,7 +145,7 @@ Dissociate so that PI is not tracking any app The tooltip for a button which causes PI to no longer track any app - + Expand or collapse the large content panel The tooltip for a button which expands or collapses the large content panel. diff --git a/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs b/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs index a598a2a55a..fdeacc40b3 100644 --- a/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs +++ b/tools/PI/DevHome.PI/ViewModels/BarWindowViewModel.cs @@ -52,7 +52,7 @@ public partial class BarWindowViewModel : ObservableObject private Visibility _appBarVisibility = Visibility.Visible; [ObservableProperty] - private string? _applicationName; + private string _applicationName = string.Empty; [ObservableProperty] private int _applicationPid;