Skip to content

Commit 863aa63

Browse files
committed
Fixed ambiguity due to missing usings directives.
1 parent 802f3f0 commit 863aa63

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Pages/GenericKeys.xaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
using System.Windows.Controls;
44
using System.Windows.Media;
55

6+
using Clipboard = System.Windows.Clipboard;
7+
using SystemColors = System.Windows.SystemColors;
8+
69
namespace SimTools;
710

811
/// <summary>
@@ -129,6 +132,7 @@ private void SetupGenKeysContextMenu()
129132
// ══════════════════════════════════════════════════════════════════════
130133

131134
/// <summary>Non-clickable bold section header.</summary>
135+
132136
private static MenuItem Header(string title) => new()
133137
{
134138
Header = title,
@@ -173,7 +177,7 @@ private static string[] LoadKeys(string fileName)
173177
var uri = new Uri($"pack://application:,,,/Resources/Keys/{fileName}");
174178
try
175179
{
176-
using var stream = Application.GetResourceStream(uri)?.Stream;
180+
using var stream = App.GetResourceStream(uri)?.Stream;
177181
if (stream is null) return [];
178182

179183
using var reader = new StreamReader(stream);

0 commit comments

Comments
 (0)