Skip to content

Commit 06f2580

Browse files
Merge pull request #278 from erikdarlingdata/fix/issue-269-plan-properties-copyable
Issue #269: Make plan viewer properties copyable
2 parents 0b3c5c7 + af95e63 commit 06f2580

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
New-Item -ItemType Directory -Force -Path "$instDir/upgrades"
7070
7171
Copy-Item 'Installer/bin/Release/net8.0/win-x64/publish/PerformanceMonitorInstaller.exe' $instDir
72-
Copy-Item 'InstallerGui/bin/Release/net8.0-windows/win-x64/publish/InstallerGui.exe' $instDir -ErrorAction SilentlyContinue
72+
Copy-Item 'InstallerGui/bin/Release/net8.0-windows/win-x64/publish/PerformanceMonitorInstallerGui.exe' $instDir -ErrorAction SilentlyContinue
7373
Copy-Item 'install/*.sql' "$instDir/install/"
7474
if (Test-Path 'upgrades') { Copy-Item 'upgrades/*' "$instDir/upgrades/" -Recurse -ErrorAction SilentlyContinue }
7575
if (Test-Path 'README.md') { Copy-Item 'README.md' $instDir }

Dashboard/Controls/PlanViewerControl.xaml.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,16 +1115,21 @@ private void AddPropertyRow(string label, string value, bool isCode = false)
11151115
Grid.SetColumn(labelBlock, 0);
11161116
grid.Children.Add(labelBlock);
11171117

1118-
var valueBlock = new TextBlock
1118+
var valueBox = new TextBox
11191119
{
11201120
Text = value,
11211121
FontSize = 11,
11221122
Foreground = TooltipFgBrush,
1123-
TextWrapping = TextWrapping.Wrap
1123+
TextWrapping = TextWrapping.Wrap,
1124+
IsReadOnly = true,
1125+
BorderThickness = new Thickness(0),
1126+
Background = Brushes.Transparent,
1127+
Padding = new Thickness(0),
1128+
VerticalAlignment = VerticalAlignment.Top
11241129
};
1125-
if (isCode) valueBlock.FontFamily = new FontFamily("Consolas");
1126-
Grid.SetColumn(valueBlock, 1);
1127-
grid.Children.Add(valueBlock);
1130+
if (isCode) valueBox.FontFamily = new FontFamily("Consolas");
1131+
Grid.SetColumn(valueBox, 1);
1132+
grid.Children.Add(valueBox);
11281133

11291134
var target = _currentPropertySection ?? PropertiesContent;
11301135
target.Children.Add(grid);

0 commit comments

Comments
 (0)