{"id":279,"date":"2016-12-01T00:48:28","date_gmt":"2016-11-30T15:48:28","guid":{"rendered":"http:\/\/marius.main.jp\/software\/blog\/?p=279"},"modified":"2017-01-04T10:54:29","modified_gmt":"2017-01-04T01:54:29","slug":"wpf%e3%81%ae%e8%b5%b7%e5%8b%95%e6%99%82%e3%81%ab%e8%a4%87%e6%95%b0%e3%81%ae%e7%94%bb%e9%9d%a2%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/todosoft.net\/blog\/?p=279","title":{"rendered":"WPF\u306e\u8d77\u52d5\u6642\u306b\u8907\u6570\u306e\u753b\u9762\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p>App.xaml\u306eStartupUri\u3092\u6d88\u53bb\u3057\u3001\u81ea\u52d5\u8d77\u52d5\u3055\u308c\u308b\u753b\u9762\u3092\u9664\u53bb<\/p>\n<p>\u30fb\u4fee\u6b63\u524d<\/p>\n<pre class=\"lang:c# decode:true\">&lt;Application x:Class=\"WpfApplication.App\"\r\n             xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n             xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n             xmlns:local=\"clr-namespace:WpfApplication\"\r\n             StartupUri=\"MainWindow.xaml\"&gt;\r\n    &lt;Application.Resources&gt;\r\n         \r\n    &lt;\/Application.Resources&gt;\r\n&lt;\/Application&gt;<\/pre>\n<p>\u30fb\u4fee\u6b63\u5f8c<\/p>\n<pre class=\"lang:c# decode:true\">&lt;Application x:Class=\"WpfApplication.App\"\r\n             xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n             xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n             xmlns:local=\"clr-namespace:WpfApplication\"&gt;\r\n    &lt;Application.Resources&gt;\r\n         \r\n    &lt;\/Application.Resources&gt;\r\n&lt;\/Application&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>App.xaml.cs\u306bOnStartup\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3001\u5404\u753b\u9762\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3001Show\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true  \">    public partial class App : Application\r\n    {\r\n\r\n        static MainWindow objMainWindow;\r\n        static MainWindow objMainWindow2;\r\n\r\n        protected override void OnStartup(StartupEventArgs e)\r\n        {\r\n            objMainWindow = new MainWindow();\r\n            objMainWindow2 = new MainWindow();\r\n\r\n            objMainWindow.Show();\r\n            objMainWindow2.Show();\r\n        }\r\n\r\n    }<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5168\u3066\u306e\u753b\u9762\u304c\u9589\u3058\u3089\u308c\u308b\u3068\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u7d42\u4e86\u3059\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>App.xaml\u306eStartupUri\u3092\u6d88\u53bb\u3057\u3001\u81ea\u52d5\u8d77\u52d5\u3055\u308c\u308b\u753b\u9762\u3092\u9664\u53bb \u30fb\u4fee\u6b63\u524d &lt;Application x:Class=&#8221;WpfApplication.App&#8221; xmlns=&#8221;http:\/\/schemas.m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20,15],"tags":[],"class_list":["post-279","post","type-post","status-publish","format-standard","hentry","category-c","category-wpf","category-15"],"_links":{"self":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279"}],"version-history":[{"count":2,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/279\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}