{"id":3850,"date":"2023-08-27T10:01:05","date_gmt":"2023-08-27T01:01:05","guid":{"rendered":"http:\/\/itoshi.main.jp\/tech\/?p=3850"},"modified":"2023-08-27T10:21:04","modified_gmt":"2023-08-27T01:21:04","slug":"sample_tab","status":"publish","type":"post","link":"http:\/\/itoshi.main.jp\/tech\/2023\/08\/27\/sample_tab\/","title":{"rendered":"\u3010C# GUI\u3011\u30bf\u30d6\u5207\u308a\u66ff\u3048\u30b5\u30f3\u30d7\u30eb with GPT"},"content":{"rendered":"<p>\u3053\u3053\u3067\u306f\u3001C#\u306eGUI\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308bWPF\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3001ChatGPT\u306e\u529b\u3092\u501f\u308a\u306a\u304c\u3089\u3001\u4f5c\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002\u5b9f\u884c\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u306f\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u304c\u3001WPF\u521d\u5b66\u8005\u306e\u79c1\u304cChatGPT\u3068\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30d9\u30b9\u30c8\u306a\u65b9\u6cd5\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306e\u3067\u3001\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30bf\u30d6\u5207\u308a\u66ff\u3048<\/h2>\n<p>\u30bf\u30d6\u3067\u753b\u9762\u3092\u5207\u308a\u66ff\u3048\u308b\u30b5\u30f3\u30d7\u30eb\u3067\u3059\u3002TabControl\u3068\u3044\u3046\u3001\u5404\u30bf\u30d6\u306b\u3042\u308b\u30dc\u30bf\u30f3\u306f\u5225\u306a\u30dc\u30bf\u30f3\u3067\u3059\u3002\u62bc\u3059\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u81ea\u5206\u3067\u3082\u30b3\u30fc\u30c9\u3092\u4fee\u6b63\u3057\u305f\u306e\u3067\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u51fa\u3055\u306a\u3044\u3067\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \" title=\"MainWindow.xaml\">&lt;Window x:Class=\"WpfAppSample.MainWindow\"\r\n        xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n        xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n        Title=\"WPF App Sample\" Height=\"350\" Width=\"525\"&gt;\r\n    &lt;TabControl&gt;\r\n        &lt;TabItem Header=\"Page 1\"&gt;\r\n            &lt;Grid&gt;\r\n                &lt;Button x:Name=\"Button1\" Content=\"Button on Page 1\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Center\" Click=\"Button1_Click\"\/&gt;\r\n            &lt;\/Grid&gt;\r\n        &lt;\/TabItem&gt;\r\n        &lt;TabItem Header=\"Page 2\"&gt;\r\n            &lt;Grid&gt;\r\n                &lt;Button x:Name=\"Button2\" Content=\"Button on Page 2\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Center\" Click=\"Button2_Click\"\/&gt;\r\n            &lt;\/Grid&gt;\r\n        &lt;\/TabItem&gt;\r\n        &lt;TabItem Header=\"Page 3\"&gt;\r\n            &lt;Grid&gt;\r\n                &lt;Button x:Name=\"Button3\" Content=\"Button on Page 3\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Center\" Click=\"Button3_Click\"\/&gt;\r\n            &lt;\/Grid&gt;\r\n        &lt;\/TabItem&gt;\r\n    &lt;\/TabControl&gt;\r\n&lt;\/Window&gt;\r\n<\/pre>\n<pre class=\"lang:c# decode:true \" title=\"MainWindow.xaml.cs\">using System.Windows;\r\n\r\nnamespace WpfAppSample\r\n{\r\n    public partial class MainWindow : Window\r\n    {\r\n        public MainWindow()\r\n        {\r\n            InitializeComponent();\r\n        }\r\n\r\n        private void Button1_Click(object sender, RoutedEventArgs e)\r\n        {\r\n            MessageBox.Show(\"Page1\");\r\n        }\r\n        private void Button2_Click(object sender, RoutedEventArgs e)\r\n        {\r\n            MessageBox.Show(\"Page2\");\r\n        }\r\n        private void Button3_Click(object sender, RoutedEventArgs e)\r\n        {\r\n            MessageBox.Show(\"Page3\");\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>TabControl \u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u30bf\u30d6\u3092\u4f5c\u308c\u308b\u306e\u3067\u3059\u306d\u3002\u5404\u30da\u30fc\u30b8\u306b\u30dc\u30bf\u30f3\u306a\u3069\u3092\u3064\u3051\u3089\u308c\u3066\u3001tab \u3067\u5207\u308a\u66ff\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3057\u305f\u3068\u304d\u306e\u753b\u9762\u306f\u3053\u3061\u3089\u3002<\/p>\n<p><a href=\"http:\/\/itoshi.main.jp\/tech\/wp-content\/uploads\/2023\/08\/tab_01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3840\" src=\"http:\/\/itoshi.main.jp\/tech\/wp-content\/uploads\/2023\/08\/tab_01.png\" alt=\"\" width=\"563\" height=\"357\" srcset=\"http:\/\/itoshi.main.jp\/tech\/wp-content\/uploads\/2023\/08\/tab_01.png 563w, http:\/\/itoshi.main.jp\/tech\/wp-content\/uploads\/2023\/08\/tab_01-300x190.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3053\u3067\u306f\u3001C#\u306eGUI\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308bWPF\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u3001ChatGPT\u306e\u529b\u3092\u501f\u308a\u306a\u304c\u3089\u3001\u4f5c\u3063\u305f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002\u5b9f\u884c\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u306f\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u304c\u3001WPF\u521d\u5b66\u8005\u306e\u79c1\u304cChatGPT\u3068\u4f5c\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30d9\u30b9\u30c8\u306a\u65b9\u6cd5\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306e\u3067\u3001\u3054\u4e86\u627f\u304f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3840,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,71,73],"tags":[],"class_list":{"0":"post-3850","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-c-program","8":"category-chatgpt","9":"category-wpf","10":"cat-72-id","11":"cat-71-id","12":"cat-73-id","13":"has_thumb"},"_links":{"self":[{"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/posts\/3850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/comments?post=3850"}],"version-history":[{"count":5,"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/posts\/3850\/revisions"}],"predecessor-version":[{"id":3860,"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/posts\/3850\/revisions\/3860"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/media\/3840"}],"wp:attachment":[{"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/media?parent=3850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/categories?post=3850"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/itoshi.main.jp\/tech\/wp-json\/wp\/v2\/tags?post=3850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}