回答編集履歴
1
整理
answer
CHANGED
@@ -69,12 +69,18 @@
|
|
69
69
|

|
70
70
|
|
71
71
|
動かし方:
|
72
|
-
|
72
|
+
ツールバー → デバッグ → XXXXのプロパティ → リソース に赤い画像と青い画像を
|
73
|
-
|
73
|
+
ドラッグ&ドロップ(画像保存時に赤い画像にimg1, 青い画像にimg2と名前をつける)
|
74
|
-
3.「ビルドアクション」に「コンテンツ」、「出力ディレクトリ」に「常にコピーする」を設定してコンパイル
|
75
|
-
4.マウスオーバーで赤い画像と青い画像が切り替わるはず
|
76
74
|
|
75
|
+
ソリューションエクスプローラーに Resources フォルダが追加されるので、中にある画像ファイルをクリック
|
77
76
|
|
77
|
+
ビルドアクション に コンテンツ 、 出力ディレクトリ に 常にコピーする を設定してコンパイル
|
78
|
+
|
79
|
+
マウスオーバーで赤い画像と青い画像が切り替わるはず
|
80
|
+
|
78
81
|
参考:
|
79
|
-
|
80
|
-
[how to make a image button that change the image when mouse over button WPF?](https://stackoverflow.com/questions/17657048/how-to-make-a-image-button-that-change-the-image-when-mouse-over-button-wpf)
|
82
|
+
ToggleButtonに画像を設定したときの参考
|
83
|
+
[how to make a image button that change the image when mouse over button WPF?](https://stackoverflow.com/questions/17657048/how-to-make-a-image-button-that-change-the-image-when-mouse-over-button-wpf)
|
84
|
+
|
85
|
+
マウスオーバー時に画像を切り替えたときの参考
|
86
|
+
[Toggle button with conditional mouse over effect](https://stackoverflow.com/questions/45505982/toggle-button-with-conditional-mouse-over-effect)
|