{"id":10432,"date":"2019-05-12T00:45:07","date_gmt":"2019-05-11T15:45:07","guid":{"rendered":"https:\/\/elleneast.com\/?p=10432"},"modified":"2019-05-28T08:27:32","modified_gmt":"2019-05-27T23:27:32","slug":"%e3%80%90vb-net%e3%80%91%e3%80%90wpf%e3%80%91listview-%e3%81%ae%e5%9f%ba%e6%9c%ac%e7%9a%84%e3%81%aa%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/elleneast.com\/?p=10432","title":{"rendered":"\u3010VB.NET\u3011\u3010WPF\u3011ListView \u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9"},"content":{"rendered":"<p>ListView \u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3067\u3059\u3002<\/p>\n<p>\u3084\u308a\u65b9\uff08\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\uff09\u306f\u3044\u304f\u3064\u304b\u8003\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u3053\u3046\u3067\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/elleneast.com\/?p=10432\/#%E7%A9%BA%E3%81%AE_ListView_%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B\" >\u7a7a\u306e ListView \u3092\u4f5c\u6210\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/elleneast.com\/?p=10432\/#ListView_%E3%81%AB%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B\" >ListView \u306b\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/elleneast.com\/?p=10432\/#ListView_%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E3%82%BD%E3%83%BC%E3%83%88%E3%81%99%E3%82%8B\" >ListView \u306e\u30c7\u30fc\u30bf\u3092\u30bd\u30fc\u30c8\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/elleneast.com\/?p=10432\/#ListView_%E3%81%AE%E9%81%B8%E6%8A%9E%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\" >ListView \u306e\u9078\u629e\u30a2\u30a4\u30c6\u30e0\u3092\u524a\u9664\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/elleneast.com\/?p=10432\/#ListView_%E3%81%AE%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%81%AE%E5%86%85%E5%AE%B9%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B\" >ListView \u306e\u30a2\u30a4\u30c6\u30e0\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/elleneast.com\/?p=10432\/#ListView_%E3%81%A7%E8%A4%87%E6%95%B0%E3%81%AE%E9%81%B8%E6%8A%9E%E9%A0%85%E7%9B%AE%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%87%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B\" >ListView \u3067\u8907\u6570\u306e\u9078\u629e\u9805\u76ee\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3059\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/elleneast.com\/?p=10432\/#ListView_%E3%81%A7%E8%A4%87%E6%95%B0%E3%81%AE%E9%A0%85%E7%9B%AE%E3%82%92%EF%BC%88%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A7%EF%BC%89%EF%BC%88%E3%82%A4%E3%83%B3%E3%83%87%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%97%E3%81%A6%EF%BC%89%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8B\" >ListView \u3067\u8907\u6570\u306e\u9805\u76ee\u3092\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3067\uff09\uff08\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u6307\u5b9a\u3057\u3066\uff09\u9078\u629e\u3059\u308b<\/a><\/li><\/ul><\/nav><\/div>\n<h2 id=\"i-0\"><span class=\"ez-toc-section\" id=\"%E7%A9%BA%E3%81%AE_ListView_%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B\"><\/span>\u7a7a\u306e ListView \u3092\u4f5c\u6210\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e0b\u56f3\u306e\u3088\u3046\u306a\u7a7a\u306e ListView \u3092\u4f5c\u308b\u306b\u306f\u30fb\u30fb\u30fb<\/p>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10435 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_01.png\" alt=\"\" width=\"271\" height=\"145\"><\/a><\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a xaml \u3092\u8a18\u8ff0\u3059\u308b\u3002Binding \u306e\u540d\u524d\uff08DayOfTheWeek\u3001StartTime\u3001EndTime\uff09\u306f\u3001\u3053\u306e\u3042\u3068\u4f5c\u6210\u3059\u308b\u30af\u30e9\u30b9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u540d\u306b\u30d0\u30a4\u30f3\u30c9\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"lang:xhtml decode:true\">&lt;ListView Name=\"ScheduleListView\" HorizontalAlignment=\"Stretch\" VerticalAlignment=\"Stretch\" Margin=\"10\"&gt;\n    &lt;ListView.View&gt;\n        &lt;GridView&gt;\n            &lt;GridViewColumn Width=\"70\" DisplayMemberBinding=\"{Binding DayOfTheWeek}\"&gt;\n                &lt;GridViewColumnHeader Content=\"\u66dc\u65e5\"\/&gt;\n            &lt;\/GridViewColumn&gt;\n            &lt;GridViewColumn Width=\"70\" DisplayMemberBinding=\"{Binding StartTime}\"&gt;\n                &lt;GridViewColumnHeader Content=\"\u958b\u59cb\u6642\u523b\" \/&gt;\n            &lt;\/GridViewColumn&gt;\n            &lt;GridViewColumn Width=\"70\" DisplayMemberBinding=\"{Binding EndTime}\"&gt;\n                &lt;GridViewColumnHeader Content=\"\u7d42\u4e86\u6642\u523b\" \/&gt;\n            &lt;\/GridViewColumn&gt;\n        &lt;\/GridView&gt;\n    &lt;\/ListView.View&gt;\n&lt;\/ListView&gt;<\/pre>\n<h2 id=\"i-1\"><span class=\"ez-toc-section\" id=\"ListView_%E3%81%AB%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E8%BF%BD%E5%8A%A0%E3%81%99%E3%82%8B\"><\/span>ListView \u306b\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u524d\u8ff0\u306e ListView \u306b\u4e0b\u56f3\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u30fb\u30fb\u30fb<\/p>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10447 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_03.png\" alt=\"\" width=\"242\" height=\"223\"><\/a><\/p>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<pre class=\"lang:vbnet decode:true\">Imports System.Collections.ObjectModel 'ObservableCollection \u7528\n\nClass MainWindow\n\n\t' ListView \u3067\u306f\u901a\u5e38 ObservableCollection \u3092\u4f7f\u7528\u3059\u308b\u3002\n\t' ObservableCollection \u306f INotifyCollectionChanged \u3092\u5b9f\u88c5\u30fb\u7d99\u627f\u3057\u3066\u3044\u308b\u3002\n\tDim g_ItemsSource As New ObservableCollection(Of ScheduleItemClass)\n\n\tPrivate Sub MainWindow_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded\n\t\t' ListView \u306b ObservableCollection \u578b\u306e\u5909\u6570\u3092\u5272\u308a\u5f53\u3066\u308b\u3002\n\t\tMe.ScheduleListView.ItemsSource = g_ItemsSource\n\n\t\t'ObservableCollection \u306b\u5bfe\u3059\u308b\u5909\u66f4\u306f ListView \u306b\u53cd\u6620\u3055\u308c\u308b\u3002\n\t\tg_ItemsSource.Add(New ScheduleItemClass(\"\u6c34\", \"07:00\", \"16:00\"))\n\t\tg_ItemsSource.Add(New ScheduleItemClass(\"\u65e5\", \"10:00\", \"19:00\"))\n\t\tg_ItemsSource.Add(New ScheduleItemClass(\"\u571f\", \"11:00\", \"20:00\"))\n\t\tg_ItemsSource.Add(New ScheduleItemClass(\"\u706b\", \"08:00\", \"17:00\"))\n\t\tg_ItemsSource.Add(New ScheduleItemClass(\"\u6728\", \"13:00\", \"22:00\"))\n\t\tg_ItemsSource.Add(New ScheduleItemClass(\"\u6708\", \"09:00\", \"18:00\"))\n\t\tg_ItemsSource.Add(New ScheduleItemClass(\"\u91d1\", \"12:00\", \"21:00\"))\n\tEnd Sub\n\n\t'ListView \u306e\u5404\u30a2\u30a4\u30c6\u30e0\u3092\u8868\u3059\u30af\u30e9\u30b9\n\tClass ScheduleItemClass\n\t    '\u3053\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092 xaml \u3067\u30d0\u30a4\u30f3\u30c9\u3057\u3066\u3044\u308b\n\t    Public Property DayOfTheWeek As String\n\t    Public Property StartTime As String\n\t    Public Property EndTime As String\n\n\t    Sub New(_DayOfTheWeek As String, _StartTime As String, _EndTime As String)\n\t        Me.DayOfTheWeek = _DayOfTheWeek\n\t        Me.StartTime = _StartTime\n\t        Me.EndTime = _EndTime\n\t    End Sub\n\tEnd Class\n\nEnd Class<\/pre>\n<h2 id=\"i-2\"><span class=\"ez-toc-section\" id=\"ListView_%E3%81%AE%E3%83%87%E3%83%BC%E3%82%BF%E3%82%92%E3%82%BD%E3%83%BC%E3%83%88%E3%81%99%E3%82%8B\"><\/span>ListView \u306e\u30c7\u30fc\u30bf\u3092\u30bd\u30fc\u30c8\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30b3\u30fc\u30c9\u91cf\u304c\u591a\u304f\u306a\u308b\u306e\u3067\u8a18\u4e8b\u3092\u5225\u306b\u3057\u307e\u3057\u305f\u3002\u300c\u3010<a href=\"https:\/\/elleneast.com\/?p=10461\" target=\"_blank\" rel=\"noopener noreferrer\">VB.NET\u3011\u3010WPF\u3011ListView \u3067\u306e\u30bd\u30fc\u30c8<\/a>\u300d\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2 id=\"i-3\"><span class=\"ez-toc-section\" id=\"ListView_%E3%81%AE%E9%81%B8%E6%8A%9E%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B\"><\/span>ListView \u306e\u9078\u629e\u30a2\u30a4\u30c6\u30e0\u3092\u524a\u9664\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u524d\u8ff0\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u524a\u9664\u30dc\u30bf\u30f3\u3092\u8ffd\u52a0\u3057\u305f\u3068\u60f3\u5b9a\u3057\u307e\u3059\u3002\u30dc\u30bf\u30f3\u306e\u540d\u524d\u306f Delete \u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u304c Delete \u30dc\u30bf\u30f3\u306e Click \u30a4\u30d9\u30f3\u30c8\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre class=\"lang:vbnet decode:true \">Private Sub Delete_Click(sender As Object, e As RoutedEventArgs) Handles Delete.Click\n\n\t' ObservableCollection \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d3\u30e5\u30fc\u3092\u53d6\u5f97\n\tDim oView As ListCollectionView = CType(CollectionViewSource.GetDefaultView(g_ItemsSource), ListCollectionView)\n\n\n\n\t'--------------------------------\n\t'\u2193\u3053\u308c\u306f\u672c\u6765\u306f\u4e0d\u8981\u306a\u30b3\u30fc\u30c9\u3002\u9805\u76ee\u306e\u4e26\u3073\u9806\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3002\n\tDim s As String = \"\"\n\ts &amp;= \"\u5143\u306e ObservableCollection\" &amp; vbCrLf\n\ts &amp;= \"-------------------------\" &amp; vbCrLf\n\tFor i As Integer = 0 To g_ItemsSource.Count -1\n\t    s &amp;= CType( g_ItemsSource.Item(i), ScheduleItemClass).DayOfTheWeek &amp; vbCrLf\n\tNext\n\ts &amp;= vbCrLf\n\ts &amp;= \"\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d3\u30e5\u30fc\" &amp; vbCrLf\n\ts &amp;= \"-------------------------\" &amp; vbCrLf\n\tFor i As Integer = 0 To oView.Count -1\n\t    s &amp;= CType( oView.GetItemAt(i), ScheduleItemClass).DayOfTheWeek &amp; vbCrLf\n\tNext\n\tMsgBox(s)\n\t'--------------------------------\n\n\n\n\tDim oListView As ListView = Me.ScheduleListView\n\n\tDo While oListView.SelectedItems.Count &gt; 0\n\t    ' ListView.SelectedIndex \u306e\u5024\u306f\u5143\u306e ObservableCollection \u3068\u4e00\u81f4\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308b\n\t    '\uff08ListView \u4e0a\u3067\u30bd\u30fc\u30c8\u3057\u3066\u3044\u308b\u5834\u5408\u306a\u3069\uff09\u306e\u3067\u3001\n\t    '\u3053\u3053\u3067 g_ItemsSource.RemoveAt \u3092\u4f7f\u3063\u3066\u306f\u30c0\u30e1\u3002\n\t    oView.RemoveAt(oListView.SelectedIndex)\n\tLoop\n\nEnd Sub<\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u306e\u30b3\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u3044\u308b\u901a\u308a\u3001ListView \u3067\u9078\u629e\u4e2d\u306e\u30a2\u30a4\u30c6\u30e0\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u5143\u306e ObservableCollection \u30c7\u30fc\u30bf\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u4e00\u81f4\u3057\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u306e\u3067\u3001ObservableCollection \u304b\u3089\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d3\u30e5\u30fc\u3092\u53d6\u5f97\u3057\u3066\u3001\u30d3\u30e5\u30fc\u304b\u3089\u30a2\u30a4\u30c6\u30e0\u3092\u524a\u9664\u3057\u305f\u307b\u3046\u304c\u5b89\u5168\u3067\u3059\uff08\u30d3\u30e5\u30fc\u304b\u3089\u30a2\u30a4\u30c6\u30e0\u3092\u524a\u9664\u3059\u308b\u3068\u3001\u5143\u306e ObservableCollection \u306e\u30c7\u30fc\u30bf\u304b\u3089\u3082\u524a\u9664\u3055\u308c\u307e\u3059\uff09\u3002<\/p>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u306e\u4e2d\u306b\u5143\u306e ObservableCollection \u306e\u4e2d\u8eab\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d3\u30e5\u30fc\u306e\u4e2d\u8eab\u3092\u6bd4\u8f03\u8868\u793a\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u8868\u793a\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e0b\u56f3\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8868\u793a\u306e\u3068\u304d\uff08\u30bd\u30fc\u30c8\u7121\u3057\uff09\u306b\u524a\u9664\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u5834\u5408\u3002<\/p>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10458 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_05.png\" alt=\"\" width=\"464\" height=\"426\" srcset=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_05.png 464w, https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_05-300x275.png 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\"><\/a><\/p>\n<p>\u4e0b\u56f3\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u66dc\u65e5\u3067\u6607\u9806\u30bd\u30fc\u30c8\u3057\u305f\u3068\u304d\u306b\u524a\u9664\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u5834\u5408\u3002<\/p>\n<p><a href=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10457 bigshadow\" src=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_06.png\" alt=\"\" width=\"466\" height=\"437\" srcset=\"https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_06.png 466w, https:\/\/elleneast.com\/wp\/wp-content\/uploads\/programming_topics\/ListView_Basic\/ListView_Basic_06-300x281.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\"><\/a><\/p>\n<h2 id=\"i-4\"><span class=\"ez-toc-section\" id=\"ListView_%E3%81%AE%E3%82%A2%E3%82%A4%E3%83%86%E3%83%A0%E3%81%AE%E5%86%85%E5%AE%B9%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B\"><\/span>ListView \u306e\u30a2\u30a4\u30c6\u30e0\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>ListView \u306e\u30a2\u30a4\u30c6\u30e0\u306e\u4e2d\u8eab\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u3001ListView \u306e\u8868\u793a\u306b\u53cd\u6620\u3055\u305b\u308b\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d3\u30e5\u30fc\u3067 .Refresh \u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:vbnet decode:true  \">Dim oView As ListCollectionView = CType(CollectionViewSource.GetDefaultView(g_ItemsSource), ListCollectionView)\nDim item As ScheduleItemClass = oView.GetItemAt(0)\nitem.DayOfTheWeek = \"(*'\u03c9'*)\"\n\noView.Refresh\n<\/pre>\n<h2 id=\"i-5\"><span class=\"ez-toc-section\" id=\"ListView_%E3%81%A7%E8%A4%87%E6%95%B0%E3%81%AE%E9%81%B8%E6%8A%9E%E9%A0%85%E7%9B%AE%E3%81%AE%E3%82%A4%E3%83%B3%E3%83%87%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B\"><\/span>ListView \u3067\u8907\u6570\u306e\u9078\u629e\u9805\u76ee\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e0b\u8a18\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u300c<a href=\"https:\/\/elleneast.com\/?p=10918\">\u3010VB.NET\u3011\u3010WPF\u3011ListBox \/ ListView \u3067\u8907\u6570\u306e\u9078\u629e\u9805\u76ee\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3059\u308b<\/a>\u300d<\/p>\n<h2 id=\"i-6\"><span class=\"ez-toc-section\" id=\"ListView_%E3%81%A7%E8%A4%87%E6%95%B0%E3%81%AE%E9%A0%85%E7%9B%AE%E3%82%92%EF%BC%88%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A7%EF%BC%89%EF%BC%88%E3%82%A4%E3%83%B3%E3%83%87%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%97%E3%81%A6%EF%BC%89%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8B\"><\/span>ListView \u3067\u8907\u6570\u306e\u9805\u76ee\u3092\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3067\uff09\uff08\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u6307\u5b9a\u3057\u3066\uff09\u9078\u629e\u3059\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u4e0b\u8a18\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u300c<a href=\"https:\/\/elleneast.com\/?p=10921\">\u3010VB.NET\u3011\u3010WPF\u3011ListBox \/ ListView \u3067\u8907\u6570\u306e\u9805\u76ee\u3092\uff08\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3067\uff09\uff08\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u6307\u5b9a\u3057\u3066\uff09\u9078\u629e\u3059\u308b<\/a>\u300d<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ListView \u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3067\u3059\u3002 \u3084\u308a\u65b9\uff08\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\uff09\u306f\u3044\u304f\u3064\u304b\u8003\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u3053\u3046\u3067\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u7a7a\u306e ListView \u3092\u4f5c\u6210\u3059\u308b \u4e0b\u56f3\u306e\u3088\u3046\u306a\u7a7a\u306e ListView \u3092\u4f5c\u308b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2656,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[57],"tags":[60,62],"class_list":{"0":"post-10432","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-57","8":"tag-vb-net","9":"tag-wpf"},"_links":{"self":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/10432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10432"}],"version-history":[{"count":3,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/10432\/revisions"}],"predecessor-version":[{"id":10926,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/10432\/revisions\/10926"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/media\/2656"}],"wp:attachment":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}