{"id":45659,"date":"2024-03-01T11:06:12","date_gmt":"2024-03-01T03:06:12","guid":{"rendered":"https:\/\/www.yimenapp.com\/kb-yimen\/?p=45659"},"modified":"2024-03-01T11:06:12","modified_gmt":"2024-03-01T03:06:12","slug":"wpf%e5%bc%80%e5%8f%91%e5%ae%89%e5%8d%93app%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e7%9a%84%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenapp.com\/kb-yimen\/45659\/","title":{"rendered":"wpf\u5f00\u53d1\u5b89\u5353app\u5982\u4f55\u5b9e\u73b0\u7684\uff1f"},"content":{"rendered":"<p>WPF\uff08Windows Presentation Foundation\uff09\u662f\u5fae\u8f6f\u7684\u4e00\u5957\u7528\u4e8e\u5f00\u53d1Windows\u5ba2\u6237\u7aef<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f\/\" title=\"\u5e94\u7528\u7a0b\u5e8f\" target=\"_blank\">\u5e94\u7528\u7a0b\u5e8f<\/a><\/span>\u7684\u6280\u672f\u3002\u5b83\u91c7\u7528\u4e86\u4e00\u5957\u57fa\u4e8eXAML\u548c.NET Framework\u7684\u58f0\u660e\u5f0f\u98ce\u683c\u3002\u7136\u800c\uff0cWPF\u4e3b\u8981\u7528\u4e8e\u5f00\u53d1Windows\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e0e\u5b89\u5353<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e5%b9%b3%e5%8f%b0\/\" title=\"\u5e73\u53f0\" target=\"_blank\">\u5e73\u53f0<\/a><\/span>\u7684\u5f00\u53d1\u65e0\u76f4\u63a5\u5173\u7cfb\u3002<\/p>\n<p>\u5c3d\u7ba1\u5982\u6b64\uff0c\u6709\u4e00\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u8ba9\u60a8\u4f7f\u7528\u7c7b\u4f3c\u4e8eWPF\u7684\u6280\u672f\u6765\u5f00\u53d1\u5b89\u5353<span class=\"wpcom_keyword_link\"><a href=\"https:\/\/www.yimenapp.com\" target=\"_blank\" title=\"\u5f00\u53d1app\u4ece\u4e00\u95e8\u5f00\u59cb\">app<\/a><\/span>\u3002\u672c\u6587\u5c06\u4e3a\u60a8\u8be6\u7ec6\u4ecb\u7ecdWPF\u5982\u4f55\u4e0e\u5b89\u5353app\u7ed3\u5408\u5b9e\u73b0\u5f00\u53d1\u3002<\/p>\n<p>### \u4f7f\u7528Xamarin<\/p>\n<p>Xamarin\u662f\u4e00\u4e2a\u7528\u4e8e\u8de8\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u57fa\u4e8e.NET Framework\uff0c\u5141\u8bb8\u60a8\u4f7f\u7528C#\u7f16\u5199iOS\u3001Android \u548c Windows\u5e94\u7528\u7a0b\u5e8f\u3002Xamarin\u80cc\u540e\u7684\u539f\u7406\u662f\uff0c\u5728\u4e0d\u540c\u7684\u5e73\u53f0\u4e0a\u8fd0\u884c\u540c\u4e00<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.myapp.ltd\/ag\/8\/sucai\/5.jpg\" \/><\/figure><\/p>\n<p>\u4e2a\u6838\u5fc3\u4ee3\u7801\uff0c\u53ea\u9700\u8981\u9488\u5bf9\u4e0d\u540c\u5e73\u53f0\u8c03\u6574UI\u90e8\u5206\u3002Xamarin Forms \u662fXamarin\u7684\u5b50\u4ea7\u54c1\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u4f7f\u7528XAML\u521b\u5efa\u8de8\u5e73\u53f0\u7684UI\u3002<\/p>\n<p>\u5c06WPF\u5f00\u53d1\u4e0eXamarin\u5e94\u7528\u7a0b\u5e8f\u7ed3\u5408\uff1a<\/p>\n<p>1. \u4e0b\u8f7d\u5e76\u5b89\u88c5Visual Studio\u548cXamarin\u76f8\u5173\u7ec4\u4ef6\u3002<\/p>\n<p>2. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684Xamarin Forms\u89e3\u51b3\u65b9\u6848\uff0c\u5305\u62ec\u4e00\u4e2a.NET Standard\u5e93<span class=\"wpcom_tag_link\"><a href=\"https:\/\/www.yimenapp.com\/kb-yimen\/tag\/%e9%a1%b9%e7%9b%ae\/\" title=\"\u9879\u76ee\" target=\"_blank\">\u9879\u76ee<\/a><\/span>\u548c\u5b89\u5353\u9879\u76ee\u3002<\/p>\n<p>3. \u5728\u5e93\u9879\u76ee\u4e2d\uff0c\u4f7f\u7528XAML\u548cC#\u5f00\u53d1\u8de8\u5e73\u53f0UI\u548c\u4e1a\u52a1\u903b\u8f91\u3002<\/p>\n<p>4. \u5728\u5b89\u5353\u9879\u76ee\u4e2d\uff0c\u5904\u7406\u4e0e\u5b89\u5353\u5e73\u53f0\u76f8\u5173\u7684\u914d\u7f6e\u548c\u4ee3\u7801\u3002<\/p>\n<p>5. \u4f7f\u7528\u7c7b\u4f3c\u4e8eWPF\u7684\u547d\u540d\u7a7a\u95f4\u548cAPI\uff0c\u6bd4\u5982`System.Windows.Forms`\u3001`System.Windows.Input`\u7b49\u8fdb\u884c\u5f00\u53d1\u3002<\/p>\n<p>6. \u8c03\u8bd5\u5e76\u8fd0\u884c\u5b89\u5353\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>### \u4f7f\u7528Uno Platform<\/p>\n<p>Uno Platform\u662f\u53e6\u4e00\u4e2a\u57fa\u4e8e.NET\uff0c\u7528\u4e8e\u8de8\u5e73\u53f0\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5b83\u652f\u6301WebAssembly\u3001Android\u3001iOS\u3001ma<a href=\"https:\/\/www.anzhuoe.com\/\">\u5b89\u5353app<\/a>cOS\u548c\u5fae\u8f6f\u7684UWP\uff08Universal Windows Platform\uff09\u3002Uno Platform\u5141\u8bb8\u60a8\u4f7f\u7528UWP XAML\u548cC#\u5f00\u53d1\u8de8\u5e73\u53f0UI\uff0c\u5bf9\u4e8e\u719f\u6089WPF\u6216UWP\u7684\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u8fd9\u5c06\u975e\u5e38\u6709\u5229\u3002<\/p>\n<p>\u5c06WPF\u5f00\u53d1\u4e0eUno Platform\u5e94\u7528\u7a0b\u5e8f\u7ed3\u5408\uff1a<\/p>\n<p>1. \u4e0b\u8f7d\u5e76\u5b89\u88c5Visual Studio\u548cUno Platform\u76f8\u5173\u7ec4\u4ef6\u3002<\/p>\n<p>2. \u521b\u5efa\u65b0\u7684Uno Platform\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62ec\u5171\u4eab\u9879\u76ee\u548c\u5404\u4e2a\u5e73\u53f0\uff08\u5b89\u5353\u3001iOS\u3001UWP\u7b49\uff09\u7684\u9879\u76ee\u3002<\/p>\n<p>3. \u4f7f\u7528UWP XAML\u548cC#\u4e3a\u5404\u4e2a\u5e73\u53f0\u521b\u5efaUI\u548c\u4e1a\u52a1\u903b\u8f91\u3002<\/p>\n<p>4. \u5728\u5b89\u5353\u9879\u76ee\u4e2d\u5904\u7406\u4e0e\u5b89\u5353\u5e73\u53f0\u76f8\u5173\u7684\u914d\u7f6e\u548c\u4ee3\u7801\u3002<\/p>\n<p>5. \u4f7f\u7528\u4e0eWPF\u9ad8\u5ea6\u4e00\u81f4\u7684\u547d\u540d\u7a7a\u95f4\u548cAPI\uff0c\u5982\uff1a`Windows.UI.Xaml`\u3001`Windows.UI.Xaml.Controls`\u7b49\u3002<\/p>\n<p>6. \u8c03\u8bd5\u5e76\u8fd0\u884c\u5b89\u5353\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u603b\u7ed3\uff1a\u867d\u7136WPF\u672c\u8eab\u5e76\u4e0d\u9002\u7528\u4e8e\u5b89\u5353app\u5f00\u53d1\uff0c\u4f46\u5229\u7528Xamarin\u6216Uno Platform\u8fd9\u7c7b\u8de8\u5e73\u53f0\u6846\u67b6\u6280\u672f\uff0c\u7ed3\u5408\u719f\u6089WPF\u7684\u5f00\u53d1\u8005\u7684XAML\u548cC#\u6280\u80fd\uff0c\u6211\u4eec\u4ecd\u7136\u53ef\u4ee5\u5b9e\u73b0\u5b89\u5353app\u5f00\u53d1\u3002\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u9009\u62e9\u54ea\u79cd\u65b9\u6848\uff0c\u4e3b\u8981\u53d6\u51b3\u4e8e\u9879\u76ee\u9700\u6c42\u548c\u4e2a\u4eba\u7ecf\u9a8c\u3002<\/p>\n<p>       <a href=\"https:\/\/www.anzhuoe.com\/\">\u5b89\u5353APP\u5f00\u53d1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WPF\uff08Windows Presentation Foundation\uff09\u662f\u5fae\u8f6f\u7684\u4e00\u5957\u7528\u4e8e\u5f00\u53d1Windows\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u7684\u6280\u672f\u3002\u5b83\u91c7\u7528\u4e86\u4e00\u5957\u57fa\u4e8eXAML\u548c.NET Framework\u7684\u58f0\u660e\u5f0f\u98ce\u683c\u3002\u7136<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[38090,38089,1879,2445,1708],"special":[],"attr":[],"class_list":["post-45659","post","type-post","status-publish","format-standard","hentry","category-www","tag-capp","tag-app","tag-1879","tag-2445","tag-1708","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/45659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/comments?post=45659"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/45659\/revisions"}],"predecessor-version":[{"id":45699,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/posts\/45659\/revisions\/45699"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/media?parent=45659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/categories?post=45659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/tags?post=45659"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/special?post=45659"},{"taxonomy":"attr","embeddable":true,"href":"https:\/\/www.yimenapp.com\/kb-yimen\/wp-json\/wp\/v2\/attr?post=45659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}