{"id":810,"date":"2021-02-14T16:25:54","date_gmt":"2021-02-14T07:25:54","guid":{"rendered":"https:\/\/todosoft.net\/blog\/?p=810"},"modified":"2021-02-14T16:25:55","modified_gmt":"2021-02-14T07:25:55","slug":"post-810","status":"publish","type":"post","link":"https:\/\/todosoft.net\/blog\/?p=810","title":{"rendered":"TreeView\u306e\u8868\u793a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6539\u5584"},"content":{"rendered":"\n<p>TreeView\u306e\u8868\u793a\u4ef6\u6570\u304c\u591a\u304f\u306a\u308b\u3068\u3001\u30ce\u30fc\u30c9\u306eExpand\u6642\u3001\u8868\u793a\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u3088\u3046\u306b\u306a\u308b\u3002<br>VirtualizingStackPanel.IsVirtualizing \u53ca\u3073 VirtualizingStackPanel.VirtualizationMode \u3092<br>\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u6539\u5584\u3059\u308b\u3002<br>\uff08\u4ee3\u511f\u3068\u3057\u3066\u3001\u5c55\u958b\u6642\u306e\u306a\u3081\u3089\u304b\u3055\u306f\u843d\u3061\u308b\u3002\uff09<\/p>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-csharp\"><code class=\"language-csharp\">&lt;TreeView>\n    &lt;TreeView.Style>\n        &lt;Style TargetType=\"{x:Type TreeView}\" BasedOn=\"{StaticResource MaterialDesignTreeView}\">\n            &lt;Setter Property=\"VirtualizingStackPanel.IsVirtualizing\" Value=\"True\"\/>\n            &lt;Setter Property=\"VirtualizingStackPanel.VirtualizationMode\" Value=\"Recycling\"\/>\n        &lt;\/Style>\n    &lt;\/TreeView.Style>\n    &lt;TreeViewItem>\n        &lt;TreeViewItem.Header>\n            &lt;TextBlock Text=\"Root\"\/>\n        &lt;\/TreeViewItem.Header>\n        &lt;TextBlock Text=\"1-1\"\/>\n        &lt;TextBlock Text=\"1-2\"\/>\n        &lt;TreeViewItem>\n            &lt;TreeViewItem.Header>\n                &lt;TextBlock Text=\"1-3\"\/>\n            &lt;\/TreeViewItem.Header>\n            &lt;TextBlock Text=\"1-3-1\"\/>\n            &lt;TextBlock Text=\"1-3-2\"\/>\n            &lt;TreeViewItem>\n                &lt;TreeViewItem.Header>\n                    &lt;TextBlock Text=\"1-3-3\"\/>\n                &lt;\/TreeViewItem.Header>\n                &lt;TextBlock Text=\"1-3-3-1\"\/>\n                &lt;TextBlock Text=\"1-3-3-2\"\/>\n            &lt;\/TreeViewItem>\n        &lt;\/TreeViewItem>\n        &lt;TreeViewItem>\n            &lt;TreeViewItem.Header>\n                &lt;TextBlock Text=\"1-4\"\/>\n            &lt;\/TreeViewItem.Header>\n            &lt;TextBlock Text=\"1-4-1\"\/>\n            &lt;TextBlock Text=\"1-4-2\"\/>\n        &lt;\/TreeViewItem>\n    &lt;\/TreeViewItem>\n&lt;\/TreeView><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>TreeView\u306e\u8868\u793a\u4ef6\u6570\u304c\u591a\u304f\u306a\u308b\u3068\u3001\u30ce\u30fc\u30c9\u306eExpand\u6642\u3001\u8868\u793a\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u3088\u3046\u306b\u306a\u308b\u3002VirtualizingStackPanel.IsVirtualizing \u53ca\u3073 VirtualizingStackPanel [&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":[95],"class_list":["post-810","post","type-post","status-publish","format-standard","hentry","category-c","category-wpf","category-15","tag-treeview"],"_links":{"self":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/810","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=810"}],"version-history":[{"count":5,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions"}],"predecessor-version":[{"id":815,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions\/815"}],"wp:attachment":[{"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/todosoft.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}