質問編集履歴
1
xamlの関連が記載が漏れていたため追記。
title
CHANGED
File without changes
|
body
CHANGED
@@ -42,4 +42,19 @@
|
|
42
42
|
</MenuItem>
|
43
43
|
</Menu>
|
44
44
|
</UserControl>
|
45
|
+
```
|
46
|
+
---
|
47
|
+
**<xamlの関連が記載が漏れていたため追記。>**
|
48
|
+
`View.xaml`と`Menu.xaml`はそれぞれ独立しており、Shellのxamlからそれぞれを参照しています。
|
49
|
+
|
50
|
+
Shell.xaml
|
51
|
+
```XML
|
52
|
+
<Window>
|
53
|
+
<Grid>
|
54
|
+
<!-- Menu.xaml -->
|
55
|
+
<ContentControl prism:RegionManager.RegionName="MenuRegion" />
|
56
|
+
<!-- View.xaml -->
|
57
|
+
<ContentControl prism:RegionManager.RegionName="ViewRegion" />
|
58
|
+
</Grid>
|
59
|
+
</Window>
|
45
60
|
```
|