質問するログイン新規登録

回答編集履歴

1

見直しキャンペーン中

2023/07/17 13:02

投稿

TN8001
TN8001

スコア10213

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