Skip to content

Commit bd23d57

Browse files
committed
1
1 parent cda5e97 commit bd23d57

File tree

5 files changed

+100
-11
lines changed

5 files changed

+100
-11
lines changed

web/page-WinUI3/app_xml.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# WinUI3
2+
3+
4+
## App.xml 설정
5+
6+
![](winui3-App.xaml.png)

web/page-WinUI3/page.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script type="text/javascript" src="../menu.js"></script>
1212
<script type="text/javascript" src="../mainmenu.js"></script>
1313
<script type="text/javascript" src="../markdown.js"></script>
14-
<script type="text/javascript" src="../markdownview.js"></script>
14+
<script type="text/javascript" src="./submenu.js"></script>
1515
<script type="text/javascript" src="./page.js"></script>
1616

1717
</head>
@@ -24,11 +24,37 @@
2424
<div id="page-resizer"></div>
2525

2626
<div id="page-contents">
27+
<div id="subMenu" class="menu"></div>
28+
<br />
2729
<div id="page-markdown-view">
2830
</div>
2931
</div>
3032

3133
</div>
3234

35+
<script>
36+
function getMarkDownFileURL() {
37+
const params = new URLSearchParams(window.location.search);
38+
const page = params.get("page");
39+
return page ? `./${page}.md` : "./vcxprj.md";
40+
}
41+
42+
function initializeMarkdwonView() {
43+
const view = document.getElementById("page-markdown-view");
44+
if (!view) {
45+
return;
46+
}
47+
48+
const markdownFileURL = getMarkDownFileURL();
49+
50+
loadMarkDownScript(
51+
function () {
52+
renderMarkdwon("page-markdown-view", markdownFileURL);
53+
}
54+
);
55+
}
56+
57+
initializeMarkdwonView();
58+
</script>
3359
</body>
3460
</html>

web/page-WinUI3/page.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class Page {
1212

1313
#Context = null;
14-
14+
1515
constructor() {
1616
this.#Context = null;
1717
}
@@ -50,7 +50,7 @@ window.onload = function () {
5050

5151
initializeMainMenu();
5252

53-
initializeMarkdwonView();
53+
initializeSubMenu();
5454
}
5555

5656

web/page-WinUI3/submenu.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/////////////////////////////////////////////////////////////////////////////
2+
//===========================================================================
3+
"use strict";
4+
5+
6+
7+
8+
9+
/////////////////////////////////////////////////////////////////////////////
10+
//===========================================================================
11+
class SubMenu {
12+
13+
_Menu = new Menu();
14+
15+
constructor() {
16+
this.registerMenuDataItem();
17+
this.initializeMenu();
18+
}
19+
20+
registerMenuDataItem() {
21+
this._Menu.addDataItem("/WinUI3" , "./page.html");
22+
this._Menu.addDataItem("/WinUI3/vcxprj설정" , "./page.html?page=vcxprj");
23+
this._Menu.addDataItem("/WinUI3/app.xml설정" , "./page.html?page=app_xml");
24+
25+
this._Menu.getRootItem().setExpanded(true);
26+
this._Menu.makeTreeItems();
27+
this._Menu.render("subMenu");
28+
}
29+
30+
initializeMenu() {
31+
this._Menu.makeTreeItems();
32+
33+
this._Menu.getRootItem().setExpanded(true);
34+
35+
for (let child of this._Menu.getRootItem().getChildren()) {
36+
child.setExpanded(true);
37+
}
38+
39+
this._Menu.render("subMenu");
40+
}
41+
}
42+
43+
44+
45+
46+
47+
/////////////////////////////////////////////////////////////////////////////
48+
//===========================================================================
49+
var _SubMenu = null;
50+
51+
52+
53+
54+
55+
/////////////////////////////////////////////////////////////////////////////
56+
//===========================================================================
57+
function initializeSubMenu() {
58+
_SubMenu = new SubMenu();
59+
}
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# WinUI3 vcxprj 설정
1+
# WinUI3
22

3+
## vcxprj 설정
34

4-
## 설명서
5+
### 설명서
56
- https://learn.microsoft.com/en-us/windows/apps/winui/winui3/create-your-first-winui3-app
67

78

8-
## 수정1
9+
### 수정1
910
```
1011
<Project ...>
1112
...
@@ -19,7 +20,7 @@
1920
</Project>
2021
```
2122

22-
## 수정2
23+
### 수정2
2324
```
2425
<Project ...>
2526
...
@@ -33,7 +34,7 @@
3334
</Project>
3435
```
3536

36-
## 배포관련
37+
### 배포관련
3738
https://johnnys.news/2024/03/Revisited-WinUI-publishing-a-single-exe
3839

3940
```
@@ -52,6 +53,3 @@ https://johnnys.news/2024/03/Revisited-WinUI-publishing-a-single-exe
5253
- app.exe
5354
- 파일 3개만 있으면 동작 가능
5455

55-
## App.xml 설정
56-
57-
![](winui3-App.xaml.png)

0 commit comments

Comments
 (0)