{"id":94,"date":"2015-03-16T18:51:22","date_gmt":"2015-03-16T09:51:22","guid":{"rendered":"http:\/\/sonic.blue\/it\/?p=94"},"modified":"2015-08-10T10:29:45","modified_gmt":"2015-08-10T01:29:45","slug":"wpf%e3%81%ae%e3%82%b9%e3%83%97%e3%83%a9%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%81%ae%e8%a1%a8%e7%a4%ba%e6%99%82%e9%96%93%e3%82%92%e7%b0%a1%e5%8d%98%e3%81%ab","status":"publish","type":"post","link":"http:\/\/sonic.blue\/it\/94","title":{"rendered":"WPF\u306e\u30b9\u30d7\u30e9\u30c3\u30b7\u30e5\u30b9\u30af\u30ea\u30fc\u30f3\u306e\u8868\u793a\u6642\u9593\u3092\u7c21\u5358\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>WPF\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u30b9\u30d7\u30e9\u30c3\u30b7\u30e5\u30b9\u30af\u30ea\u30fc\u30f3\u7528\u306e\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u3066\u3001\u753b\u50cf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u300cSplashScreen\u300d\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3059\u304c\u3001\u8868\u793a\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u8abf\u6574\u3067\u304d\u306a\u3044\u305f\u3081\u3059\u3050\u306b\u8868\u793a\u304c\u7d42\u308f\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u307e\u3067\u30ef\u30f3\u30af\u30c3\u30b7\u30e7\u30f3\u7f6e\u304f\u3053\u3068\u3067\u3001\u5b9f\u969b\u306e\u8868\u793a\u307e\u3067\u306e\u524d\u51e6\u7406\u3084\u8868\u793a\u79d2\u6570\u6307\u5b9a\u306a\u3069\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u300cStartUP Object\u300d\u3092(Not Set)\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nStartupUri=&#8221;MainWindow.xaml&#8221; \u3092 Startup=&#8221;App_Startup&#8221; \u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u753b\u9762\u5074\uff08C#\u3001VB.NET\u5171\u901a\uff09<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;Application x:Class=&quot;Application&quot;\r\n     xmlns=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&quot;\r\n     xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;\r\n     Startup=&quot;App_Startup&quot;&gt;\r\n    &lt;Application.Resources&gt;\r\n    &lt;\/Application.Resources&gt;\r\n&lt;\/Application&gt;\r\n<\/pre>\n<p>\u6b21\u306b\u3001App.xaml.cs\uff08\u307e\u305f\u306fApplication.xaml.vb\uff09\u306bApp_Startup\u306e\u5ba3\u8a00\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30b9\u30d7\u30e9\u30c3\u30b7\u30e5\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u5f85\u6a5f\u3055\u305b\u3066\u304b\u3089\u753b\u9762\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>C#\u3067\u306e\u5bfe\u5fdc\u65b9\u6cd5\uff08App.xaml.cs\uff09<\/strong><\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n   public partial class App : System.Windows.Application\r\n    {\r\n        void App_Startup(object sender, StartupEventArgs e)\r\n        {\r\n            \/\/2\u79d2\u30b9\u30d7\u30e9\u30c3\u30b7\u30e5\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u5f85\u6a5f\u3055\u305b\u308b\r\n            System.Threading.Thread.Sleep(2000);\r\n\r\n            \/\/StartUP Object\u306f\u6307\u5b9a\u305b\u305a\u306b\u3053\u3053\u3067\u521d\u671f\u5316\u3059\u308b\r\n            WpfApplication1 mainWindow = new MainWindow(); \/\/\u2190\u8d77\u52d5\u3057\u305f\u3044\u753b\u9762\u30af\u30e9\u30b9\u540d\r\n            mainWindow.Show();\r\n        }\r\n    }\r\n<\/pre>\n<p><strong>VB.NET\u3067\u306e\u5bfe\u5fdc\u65b9\u6cd5\uff08Application.xaml.vb\uff09<\/strong><\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\n    Class Application\r\n        Private Sub App_Startup(sender As Object, e As StartupEventArgs)\r\n            '2\u79d2\u30b9\u30d7\u30e9\u30c3\u30b7\u30e5\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u5f85\u6a5f\u3055\u305b\u308b\r\n            System.Threading.Thread.Sleep(2000)\r\n\r\n            'StartUP Object\u306f\u6307\u5b9a\u305b\u305a\u306b\u3053\u3053\u3067\u521d\u671f\u5316\u3059\u308b\r\n            Dim mainWindow As New MainWindow() '\u2190\u8d77\u52d5\u3057\u305f\u3044\u753b\u9762\u30af\u30e9\u30b9\u540d\r\n            mainWindow.Show()\r\n        End Sub\r\n    End Class\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WPF\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u30b9\u30d7\u30e9\u30c3\u30b7\u30e5\u30b9\u30af\u30ea\u30fc\u30f3\u7528\u306e\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u3066\u3001\u753b\u50cf\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u300cSplashScreen\u300d\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 \u3067\u3059\u304c\u3001\u8868\u793a\u30bf\u30a4\u30df\u30f3\u30b0\u304c\u8abf\u6574\u3067\u304d\u306a\u3044\u305f\u3081 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,2],"tags":[],"class_list":["post-94","post","type-post","status-publish","format-standard","hentry","category-wpf","category-program"],"_links":{"self":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/94","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":20,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":200,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/94\/revisions\/200"}],"wp:attachment":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}