LoginSignup
0
0

More than 5 years have passed since last update.

Visual Studio / WPF > Bug?: XAMLに追加したコントロールがC# スクリプト上でインテリセンスの候補に表示されない

Last updated at Posted at 2017-04-25
動作環境
Windows 7 Pro (32bit)
Microsoft Visual Studio 2017 Community
  Version 15.1 (26403.7) Release
Sublime Text 2

VS2017にてXAMLファイルにListBoxなどを追加後、C# スクリプトにてそのListBoxの名前を入力しようとしてもインテリセンスに候補が挙がらない。
他のコントロールに関してもこういう現象に数回遭遇した。

そういう場合、ソリューションを一度閉じて、再度ソリューションを開きなおすとよい。

インテリセンス用のデータ構造にXAMLファイルの修正がいつ適用されるか不明だが、ソリューションを開きなおすと読み直すのだろう。

XAML変更のたびにソリューションを開きなおすのも面倒なので、もっと気軽に対応できる方法が見つかるとよい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0