仮想キーボードを含む wpf アプリケーションを実行しています。CapsLock ボタンをクリックすると、次の通知が表示されます。
Possibility of comparing references involuntary for a comparison of values, cast the left hand side to type 'string'
この行で:
if (btnVK_A.Content == "a")
btnVK_A.Content = "A";
else
btnVK_A.Content = "a";
文字列にキャストしbtnVK_A.Content
ましたが、通知はまだ表示されています。では、どうすればこれを修正できますか?