回答編集履歴

1

見直しキャンペーン中

2023/07/17 13:02

投稿

TN8001
TN8001

スコア9341

test CHANGED
@@ -1,29 +1,15 @@
1
- ```xaml
1
+ ```xml
2
-
3
2
  <ui:WindowBase2
4
-
5
3
  x:Class="WindowTest.MainWindow"
6
-
7
4
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
8
-
9
5
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
10
-
11
6
  xmlns:ui="clr-namespace:WindowTest.UI"
12
-
13
7
  xmlns:local="clr-namespace:WindowTest">
14
-
15
8
  </ui:WindowBase2>
16
-
17
9
  ```
18
-
19
-
20
10
 
21
11
  `xmlns:ui="clr-namespace:WindowTest.UI"`のようにxml名前空間を指定して、`ui:WindowBase2`と書くことになります。`ui`は任意の名前で結構です。
22
12
 
23
-
24
-
25
13
  ---
26
-
27
14
  xamlのルートのクラスを変更すると、実行はできるのにデザイナがエラーを吐くことがよくあります。
28
-
29
15
  objやbinフォルダを削除したりVisualStudioを再起動したりしてなだめているんですが、この直し方は私も知りたいです^^;