{"id":11,"date":"2012-11-09T19:10:25","date_gmt":"2012-11-09T19:10:25","guid":{"rendered":"http:\/\/bohu.net\/blog\/?p=11"},"modified":"2023-02-11T01:13:16","modified_gmt":"2023-02-10T17:13:16","slug":"net-framework-%e4%b8%ad%e7%9b%b8%e5%85%b3%e6%8a%80%e6%9c%af%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.bohu.net\/blog\/11\/","title":{"rendered":".Net Framework \u4e2d\u76f8\u5173\u6280\u672f\u7b80\u4ecb"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9534\" src=\"https:\/\/bohu.net\/blog\/wp-content\/uploads\/2012\/11\/thCAM9N00B.jpg\" alt=\"\" width=\"283\" height=\"300\"><\/p>\n<p>Windows Workflow Foundation(WF):\u5de5\u4f5c\u6d41\u5f15\u64ce\uff0c\u57fa\u4e8e\u5de5\u4f5c\u6d41\u7684\u5f00\u53d1\u4f7f\u7a0b\u5e8f\u7684\u4e1a\u52a1\u903b\u8f91\u4e0e\u4ee3\u7801\u76f8\u5206\u79bb\uff0c\u4ece\u800c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u8f6f\u4ef6\u5f00\u53d1\u7684\u6548\u7387\u3002<\/p>\n<p>Windows Communication Foundation(WCF): \u7528\u4e8e\u5b9e\u73b0\u5e94\u7528\u7a0b\u5e8f\u95f4(\u5305\u542b\u4e0d\u540c\u8bed\u8a00\u5f00\u53d1\u7684\u7a0b\u5e8f)\u901a\u4fe1\u7684\u6280\u672f\uff0cWCF\u6784\u5efa\u5728SOAP\u534f\u8bae\u4e4b\u4e0a\u3002<\/p>\n<p>Windows Presentation Foundation(WPF): \u96c6\u6210WebForm\u4e0eWinForm\u4e8e\u4e00\u4f53\u7684\u754c\u9762\u5f00\u53d1\u65b9\u6848<\/p>\n<p>WPF\u7684\u5168\u79f0\u662fWindows Presentation Foundation\uff0c\u662f\u5fae\u8f6f\u65b0\u53d1\u5e03\u7684Vista\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e09\u5927\u6838\u5fc3\u5f00\u53d1\u5e93\u4e4b\u4e00\uff0c\u5176\u4e3b\u8981\u8d1f\u8d23\u7684\u662f\u56fe\u5f62\u663e\u793a\uff0c\u6240\u4ee5\u53ebPresentation\uff08\u5448\u73b0\uff09\u3002<br \/>\n\u4f5c\u4e3a\u65b0\u7684\u56fe\u5f62\u5f15\u64ce\uff0cWPF\u662f\u57fa\u4e8eDirectX\u7684\uff0c\u5f53\u7136\u589e\u52a0\u4e86\u5f88\u591a\u65b0\u7684\u529f\u80fd\u3002\u51762D\u548c3D\u5f15\u64ce\u7684\u5f3a\u5927\u770b\u770bVista\u7684\u754c\u9762\u5c31\u660e\u767d\u4e86\uff0c\u518d\u52a0\u4e0a\u5176\u5bf9Aero\u56fe\u5f62\u5f15\u64ce\u7684\u652f\u6301\uff0c\u66f4\u52a0\u8ba9\u4f60\u521a\u5230\u795e\u5947\u3002\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0cAero\u662f\u4e13\u95e8\u4e3a3D\u684c\u9762\u5f00\u53d1\u7684\u5f15\u64ce\uff0c\u53ef\u4ee5\u8ba9\u684c\u9762\u5b9e\u73b0\u795e\u5947\u76843D\u7ffb\u8f6c\uff0c\u8fd9\u7edd\u5bf9\u662f\u64cd\u4f5c\u7cfb\u7edf\u6709\u53f2\u4ee5\u6765\u7684\u4e00\u6b21\u795e\u5947\u5c1d\u8bd5\uff0c\u867d\u7136\u5bf9\u786c\u4ef6\u914d\u7f6e\u7684\u8981\u6c42\u4e5f\u662f\u60ca\u4eba\u7684\uff0c\u6b64\u524d\u5df2\u6709\u76f8\u5173\u62a5\u9053\u79f0\uff0cVista\u5bf9\u663e\u5361\u5341\u5206\u6311\u5254\u5c31\u662f\u51fa\u4e8e\u8fd0\u884cAero\u7684\u8003\u8651\u3002<\/p>\n<p>P.S. : WPF\u5c31\u662f\u6240\u8c13\u4e0b\u4e00\u4ee3Windows\u754c\u9762\u5c42\u6280\u672f\uff0c\u5c31\u7b97\u662fwinform\u7684\u4e0b\u4e00\u4ee3\u5427\u3002<\/p>\n<p>Windows\u901a\u4fe1\u57fa\u7840\uff08Windows Communication Foundation\uff0cWCF\uff09\u662f\u57fa\u4e8eWindows\u5e73\u53f0\u4e0b\u5f00\u53d1\u548c\u90e8\u7f72\u670d\u52a1\u7684\u8f6f\u4ef6\u5f00\u53d1\u5305\uff08Software Development Kit\uff0cSDK\uff09\u3002WCF\u4e3a\u670d\u52a1\u63d0\u4f9b\u4e86\u8fd0\u884c\u65f6\u73af\u5883\uff08Runtime Environment\uff09\uff0c\u4f7f\u5f97\u5f00\u53d1\u8005\u80fd\u591f\u5c06CLR\u7c7b\u578b\u516c\u5f00\u4e3a\u670d\u52a1\uff0c\u53c8\u80fd\u591f\u4ee5CLR\u7c7b\u578b\u7684\u65b9\u5f0f\u4f7f\u7528\u670d\u52a1\u3002\u7406\u8bba\u4e0a\u8bb2\uff0c\u521b\u5efa\u670d\u52a1\u5e76\u4e0d\u4e00\u5b9a\u9700\u8981WCF\uff0c\u4f46\u5b9e\u9645\u4e0a\uff0c\u4f7f\u7528WCF\u5374\u53ef\u4ee5\u4f7f\u5f97\u521b\u5efa\u670d\u52a1\u7684\u4efb\u52a1\u4e8b\u534a\u529f\u500d\u3002WCF\u662f\u5fae\u8f6f\u5bf9\u4e00\u7cfb\u5217\u4ea7\u4e1a\u6807\u51c6\u5b9a\u4e49\u7684\u5b9e\u73b0\uff0c\u5305\u62ec\u670d\u52a1\u4ea4\u4e92\u3001\u7c7b\u578b\u8f6c\u6362\u3001\u5c01\u9001\uff08Marshaling\uff09\u4ee5\u53ca\u5404\u79cd\u534f\u8bae\u7684\u7ba1\u7406\u3002<\/p>\n<p>P.S. : \u5b83\u6574\u5408\u4e86.Net\u5e73\u53f0\u4e0b\u6240\u6709\u7684\u548c\u5206\u5e03\u5f0f\u7cfb\u7edf\u6709\u5173\u7684\u6280\u672f\uff0c\u4f8b\u5982ASP.NET Web\u670d\u52a1\uff08ASMX\uff09\u3001\u589e\u5f3aWeb\u670d\u52a1\u6269\u5c55\uff08WSE\uff09\u3001.Net Remoting\u3001\u4f01\u4e1a\u670d\u52a1\uff08Enterprise Service\uff09\u548c\u5fae\u8f6f\u6d88\u606f\u961f\u5217\uff08MSMQ\uff09\u3002\u4f60\u5c31\u5148\u628a\u5b83\u60f3\u6210Web Service\u7684\u4e0b\u4e00\u4ee3\u4e5f\u6ca1\u4ec0\u4e48\u95ee\u9898\u3002<\/p>\n<p>LINQ\uff0c\u8bed\u8a00\u96c6\u6210\u67e5\u8be2\uff08Language INtegrated Query\uff09\u662f\u4e00\u7ec4\u7528\u4e8ec#\u548cVisual Basic\u8bed\u8a00\u7684\u6269\u5c55\u3002\u5b83\u5141\u8bb8\u7f16\u5199C#\u6216\u8005Visual Basic\u4ee3\u7801\u4ee5\u67e5\u8be2\u6570\u636e\u5e93\u76f8\u540c\u7684\u65b9\u5f0f\u64cd\u4f5c\u5185\u5b58\u6570\u636e\u3002<\/p>\n<p><!--more--><\/p>\n<h3><strong>\u4e0b\u9762\u4ee5\u793a\u4f8b\u4f7f\u7528WPF\u3001WCF\u3001WF\u6253\u9020Hello World\u7a0b\u5e8f<\/strong><\/h3>\n<p><strong>\u5206\u6790\u7bc7\uff1a<\/strong><\/p>\n<p>Hello World\u7a0b\u5e8f\u4f5c\u4e3a\u6240\u6709\u7f16\u7a0b\u8bed\u8a00\u7684\u8d77\u59cb\u9636\u6bb5\uff0cHello World\u5360\u636e\u7740\u65e0\u6cd5\u6539\u53d8\u7684\u5730\u4f4d\u3002\u672c\u4f8b\u5b50\u5f88\u7b80\u5355\uff0c\u7528\u4e86WPF\u3001WCF\u3001WF\u4e09\u79cd\u8fd8\u7b97\u6bd4\u8f83\u65b0\u7684\u6280\u672f\u3002\u8fd9\u4e2a\u4f8b\u5b50\u6709\u4e09\u4e2a\u9879\u76ee\uff1a<\/p>\n<p><strong>1\u3001WPFProject\uff1a<\/strong>WPF\u5e94\u7528\u7a0b\u5e8f<\/p>\n<p><strong>2\u3001WCFProject\uff1a<\/strong>WCF\u670d\u52a1<\/p>\n<p><strong>3\u3001WFProject\uff1a<\/strong>WF\u6d41\u7a0b\u5b9a\u4e49<\/p>\n<p>\u6267\u884c\u987a\u5e8f\u662fWPFProject\u7a0b\u5e8f\u53bb\u542f\u52a8WFProject\u9879\u76ee\u7684\u5de5\u4f5c\u6d41\uff0cWFProject\u9879\u76ee\u53bb\u8c03\u7528WCFProject\u7684WCF\u670d\u52a1\u3002\u63a5\u7740WCFProject\u670d\u52a1\u5c06&#8217;Hello World&#8217;\u8fd9\u884c\u7f16\u7a0b\u754c\u6700\u7ecf\u5178\u7684\u8bdd\u8fd4\u56de\u7ed9WFProject\uff0cWFProject\u7531\u5c06\u5c06&#8217;Hello World&#8217;\u8fd4\u56de\u7ed9WPFProject\u7684UI\u3002\u6267\u884c\u987a\u5e8f\u5982\u4e0b\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bohu.net\/blog\/wp-content\/uploads\/2013\/01\/hw1.png\" alt=\"\" width=\"402\" height=\"486\" border=\"0\"><\/p>\n<p><strong>\u5b9e\u8df5\u7bc7 :<\/strong><\/p>\n<p><strong>(\u8bf7\u53c2\u8003\u539f\u6587)<\/strong><\/p>\n<p>WPF\u3001WCF\u3001WF\u6253\u9020Hello World\u7a0b\u5e8f<\/p>\n<p>\u4e2d\u6587\u7248\uff1a&nbsp;<a href=\"http:\/\/www.cnblogs.com\/zhuqil\/archive\/2010\/05\/14\/Hello-World.html\">http:\/\/www.cnblogs.com\/zhuqil\/archive\/2010\/05\/14\/Hello-World.html<\/a><\/p>\n<p>Writing&nbsp; a &#8216;Hello World&#8217; program using wpf+wcf+wf step by step<\/p>\n<p>\u82f1\u6587\u7248\uff1a<a href=\"http:\/\/www.codeproject.com\/KB\/WF\/wcf-wpf-wf-hello-world.aspx\" target=\"_blank\" rel=\"noopener\">http:\/\/www.codeproject.com\/KB\/WF\/wcf-wpf-wf-hello-world.aspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Workflow Foundation(WF):\u5de5\u4f5c\u6d41\u5f15\u64ce\uff0c\u57fa\u4e8e\u5de5\u4f5c\u6d41\u7684\u5f00\u53d1\u4f7f\u7a0b\u5e8f\u7684\u4e1a\u52a1\u903b\u8f91\u4e0e &hellip; <a href=\"https:\/\/www.bohu.net\/blog\/11\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c.Net Framework \u4e2d\u76f8\u5173\u6280\u672f\u7b80\u4ecb\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":89,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[50,98,160,354,408,413,431,616],"class_list":["post-11","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","tag-net","tag-c","tag-framework","tag-software","tag-wcf","tag-wf","tag-wpf","tag-616"],"_links":{"self":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/comments?post=11"}],"version-history":[{"count":3,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":9884,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/posts\/11\/revisions\/9884"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/media?parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/categories?post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bohu.net\/blog\/wp-json\/wp\/v2\/tags?post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}