{"id":2157,"date":"2023-10-07T15:44:01","date_gmt":"2023-10-07T07:44:01","guid":{"rendered":"https:\/\/white-night.club\/?p=2157"},"modified":"2023-11-09T11:07:51","modified_gmt":"2023-11-09T03:07:51","slug":"blog19","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/10\/07\/blog19\/","title":{"rendered":"\u6587\u7ae0\u5206\u7c7b\u95ee\u9898"},"content":{"rendered":"\n<p>\u4e3a\u4ec0\u4e48\u8bf4\u8fd9\u662f\u4e00\u4e2a\u95ee\u9898\uff1f\u3001<\/p>\n\n\n\n<p>\u6211\u6700\u521d\u662f\u5728b\u7ad9\u4e0a\u5237\u5230\u7684\u6709\u5173WinUI3\u7684\u89c6\u9891\uff0c\u6b64\u524d\u4ece\u672a\u63a5\u89e6\u8fc7\u50cfUWP\uff0c\u6216\u8005C#\u8fd9\u4e9b\u6280\u672f\u6808\u3002\u6240\u4ee5\uff0c\u521a\u5f00\u59cb\u63a5\u89e6WinUI3\u90a3\u6bb5\u65f6\u95f4\u8fc7\u5f97\u90a3\u53eb\u4e00\u4e2a\u714e\u71ac\u3002xaml\u662f\u4ec0\u4e48\uff0c\u4e0d\u77e5\u9053\u3002C#\u5f02\u6b65\u65b9\u6cd5\u600e\u4e48\u5f04\uff0c\u4e0d\u77e5\u9053\u3002\u7c7b\u4f3ccss\u7684\u6392\u7248\u5e03\u5c40\uff0c\u4e0d\u4f1a\u5f04\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u4e5f\u662f\u4e00\u6b65\u4e00\u6b65\u5b66\u4e60\uff0c\u8d77\u7801\u5927\u81f4\u7684\u6846\u67b6\u662f\u641e\u61c2\u4e86\uff0c\u4f46\u662f\u6211\u5bf9\u4e8ewinui3\u5230\u5e95\u662f\u4ec0\u4e48\uff0c\u8fd8\u662f\u6ca1\u6709\u5f88\u6df1\u7684\u7406\u89e3\u3002<\/p>\n\n\n\n<p>\u540e\u9762\u5728\u6162\u6162\u5b66\u4e60\u4e2d\uff0c\u6211\u77e5\u9053\u4e86\uff0c\u8d77\u7801\u4ee5\u6211\u7684\u7406\u89e3\uff0cwinui3\u5c31\u662f\u4e2awindow 11\u7684\u539f\u751fui\u5e93\u3002\u5176\u672c\u8d28\u7528\u7684\u8fd8\u662fC#\u65b9\u6cd5\u548c.net\u6846\u67b6\u3002\u5b83\u7684\u524d\u7aef\u9875\u9762\u662f\u57fa\u4e8examl\uff0c\u7c7b\u4f3c\u4e8ehtml\u90a3\u79cd\u6a21\u677f\u5f62\u5f0f\u5b9e\u73b0\u7684\u3002\u5b83\u7684\u5185\u90e8\u65b9\u6cd5\u5219\u662f\u901a\u5173C#\u6216C++\u5b9e\u73b0\u7684\u3002\u4e0d\u8fc7.net\u6846\u67b6\u6211\u73b0\u5728\u8fd8\u6ca1\u600e\u4e48\u63a5\u89e6\u8fc7\u5c31\u662f\u4e86\u3002<\/p>\n\n\n\n<p>\u4e3b\u8981\u662f\u5728\u5b66\u4e60vue3\u7684\u65f6\u5019\u7a81\u7136\u53d1\u73b0\u7684\u8fd9\u4e2a\u95ee\u9898\u3002\u4f60\u770bvue3\u672c\u8d28\u4e5f\u662f\u4e2aMVVM\u6846\u67b6\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0cvue\u7684\u7ec4\u4ef6\u603b\u7684\u6765\u8bf4\uff0c\u53ef\u4ee5\u628ahtml\u524d\u7aef\u9875\u9762\uff0cjs\u5185\u90e8\u65b9\u6cd5\uff0ccss\u6837\u5f0f\u8868\u7ed9\u5c01\u88c5\u5230\u540c\u4e00\u4e2a\u6587\u4ef6\u91cc\u53bb\u8c03\u7528\u3002\u5b83\u7684\u57fa\u7840\u8fd8\u662f\u79bb\u4e0d\u5f00html+js+css\u8fd9\u4e09\u5927\u4ef6\u3002\u6240\u4ee5\u5b66vue\u4e4b\u524d\u8fd8\u662f\u5f97\u5bf9\u8fd9\u4e09\u5927\u4ef6\u6709\u4e2a\u57fa\u7840\u7684\u4e86\u89e3\u3002\u4e0d\u7136\u5b66\u8d77\u6765\u4e5f\u5f88\u6298\u78e8\u3002<\/p>\n\n\n\n<p>WinUI3\u4e5f\u662f\uff0c\u5b83\u5c31\u4e00UI\u5e93\uff0c\u57fa\u7840\u8fd8\u662f\u5f97\u53bb\u5b66C#\u548cC++\u3002<\/p>\n\n\n\n<p>\u90a3\u4e48\u8fd9\u5c31\u6709\u4e2a\u95ee\u9898\uff0c\u6211\u5728\u63a5\u89e6WinUI3\u7684\u65f6\u5019\u662f\u4e0d\u77e5\u9053\u8fd9\u4e9b\u95ee\u9898\u7684\u3002\u6211\u53ea\u77e5\u9053\u5b83\u662f\u4e2a\u7528C#\u548cxaml\u5199\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6240\u4ee5\u6211\u5bf9\u5b83\u7684\u5206\u7c7b\u5c31\u662f\u201cWinUI3\u201d\u3002\u4f46\u5b83\u7684\u5185\u90e8C#\u65b9\u6cd5\uff0c\u5373\u4f7f\u8131\u79bb\u7684WinUI3\u5e94\u8be5\u4e5f\u662f\u53ef\u4ee5\u590d\u7528\u7684\uff0c\u90a3\u4e48\u5b83\u7684\u6587\u7ae0\u5206\u7c7b\u5e94\u8be5\u5206\u4e3aC#\uff0c\u548cUI\u76f8\u5173\u7684\u624d\u5e94\u8be5\u5206\u5230WinUI3\u4e2d\u3002\u4f46\u662f\u5f53\u65f6\u7684\u6211\u53c8\u4e0d\u77e5\u9053\u8fd9\u4e9b\u95ee\u9898\u3002\u6240\u4ee5&#8230;.\u662f\u540e\u671f\u6539\u5206\u7c7b\uff0c\u8fd8\u662f\u5c06\u9519\u5c31\u9519\uff1f<\/p>\n\n\n\n<p>\u6211\u76ee\u524d\u7684\u6587\u7ae0\u5206\u7c7b\u5c31\u662f\uff1a\u63a5\u89e6\u4ec0\u4e48\uff0c\u5206\u7c7b\u5230\u4ec0\u4e48\u3002\u6bd4\u5982\u6211\u662f\u5728vue3\u4e2d\u78b0\u5230\u7684\u8fd9\u4e2a\u95ee\u9898\uff0c\u90a3\u6211\u5c31\u628a\u5b83\u5206\u8fdbvue3\u4e2d\uff0c\u5199\u5355\u4e2ahtml\u6587\u6863\u78b0\u89c1\u7684\u95ee\u9898\uff0c\u5c31\u5206\u5230html\u3002\u5b9e\u5728\u4e0d\u597d\u5206\u7c7b\u7684\uff0c\u5c31\u5206\u5230\u6280\u672f\u65e5\u5fd7\uff0c\u5b8c\u4e8b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201d\u56de\u987e\u4e4b\u524d\u7684\u6587\u7ae0\u5206\u7c7b\u201c\u95ee\u9898<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[15,12],"tags":[11],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/2157"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=2157"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/2157\/revisions"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=2157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=2157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=2157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}