{"id":21604,"date":"2022-11-14T11:33:01","date_gmt":"2022-11-14T06:03:01","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/"},"modified":"2022-11-14T11:33:01","modified_gmt":"2022-11-14T06:03:01","slug":"solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/","title":{"rendered":"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-44590468\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"44590468\" data-parentid=\"44459554\" data-score=\"5\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<h2>Possible Solution 1<\/h2>\n<p>You can have two data templates which share some UI, and one has some more elements than the other. The issue you will have is how to update to a different template on click on the fly.<\/p>\n<p>I recently answered a question here which solves this issue by subscribing to the <code>IsSelected<\/code> property and manually reset the <code>ContentTemplateSelector<\/code> to force updating the template. <\/p>\n<p>But swapping the full template to me is an overkill, and I lean towards your second solution too.<\/p>\n<h2>Possible Solution 2<\/h2>\n<p>Looks like you are trying to update the <code>Height<\/code> via a property in your <em>ViewModel<\/em>, this could work. But to me, this kind of UI logic is better put in the code-behind, where you can easily obtain your <code>Grid<\/code> inside the <code>ItemClick<\/code> callback and just assign a different <code>Height<\/code> to it.<\/p>\n<p>But then what if you needed a similar <code>ListView<\/code> elsewhere with similar requirements? You&#8217;d end up with a lot of duplicate code-behind code. This is why I&#8217;d actually extend the <code>ListViewItem<\/code> functionality to cater for expanding some parts of UI inside its <code>ItemTemplate<\/code>. So here is how &#8211;<\/p>\n<p>First, let&#8217;s create an <code>ExtendedListViewItem<\/code> that inherits from the <code>ListViewItem<\/code>. This extended control does two things &#8211; <\/p>\n<ol>\n<li>Create an <em>attached property<\/em> called <code>IsExpandable<\/code> which will later<br \/>\nbe attached to some UI element inside the <code>ListView<\/code>&#8216;s data<br \/>\ntemplate.<\/li>\n<li>Since every time when a <code>ListViewItem<\/code> is clicked, the <code>IsSelected<\/code> property gets updated, we can monitor it to show and hide the <code>IsExpandable<\/code> element(s) accordingly.<\/li>\n<\/ol>\n<hr>\n<pre><code>public class ExtendedListViewItem : ListViewItem\n{\n    public ExtendedListViewItem()\n    {\n        \/\/ This could be set in its default style in Generic.xaml instead.\n        HorizontalContentAlignment = HorizontalAlignment.Stretch;\n\n        RegisterPropertyChangedCallback(IsSelectedProperty, (s, e) =&gt;\n        {\n            \/\/ Children() is available at\n            \/\/ https:\/\/github.com\/JustinXinLiu\/Continuity\/blob\/0cc3d7556c747a060d40bae089b80eb845da84fa\/Continuity\/Extensions\/UtilExtensions.cs#L25\n            foreach (var child in this.Children())\n            {\n                if (GetIsExpandable(child))\n                {\n                    child.Visibility = IsSelected ? Visibility.Visible : Visibility.Collapsed;\n                }\n            }\n        });\n    }\n\n    public static void SetIsExpandable(DependencyObject element, bool value) =&gt;\n        element.SetValue(IsExpandableProperty, value);\n    public static bool GetIsExpandable(DependencyObject element) =&gt;\n        (bool)element.GetValue(IsExpandableProperty);\n    public static readonly DependencyProperty IsExpandableProperty = DependencyProperty.RegisterAttached(\n        \"IsExpandable\",\n        typeof(bool),\n        typeof(ExtendedListViewItem),\n        new PropertyMetadata(default(bool), (s, e) =&gt;\n            {\n                var element = (UIElement)s;\n                element.Visibility = (bool)e.NewValue ? Visibility.Collapsed : Visibility.Visible;\n            }));\n}\n<\/code><\/pre>\n<hr>\n<p>Next, we also need to extend the <code>ListView<\/code> control to take our <code>ExtendedListViewItem<\/code> control as its child instead of the default <code>ListViewItem<\/code>.<\/p>\n<hr>\n<pre><code>public class ExtendedListView : ListView\n{\n    protected override DependencyObject GetContainerForItemOverride()\n    {\n        return new ExtendedListViewItem();\n    }\n}\n<\/code><\/pre>\n<hr>\n<p>Finally, it&#8217;s time to attach the <code>IsExpandable<\/code> flag to the right element. For example, I only want the texts to show when the item is clicked &#8211;<\/p>\n<hr>\n<pre><code>&lt;DataTemplate x:Key=\"MyItemTemplate\"&gt;\n    &lt;StackPanel Margin=\"24\"&gt;\n        &lt;Image HorizontalAlignment=\"Left\" Source=\"{Binding Property3}\" Width=\"48\" Height=\"48\" \/&gt;\n\n        &lt;StackPanel Margin=\"12\" local:ExtendedListViewItem.IsExpandable=\"True\"&gt;\n            &lt;TextBlock Text=\"{Binding Property1}\" Style=\"{StaticResource TitleTextBlockStyle}\" \/&gt;\n            &lt;TextBlock Text=\"{Binding Property2}\" Style=\"{StaticResource CaptionTextBlockStyle}\" \/&gt;\n        &lt;\/StackPanel&gt;\n    &lt;\/StackPanel&gt;\n&lt;\/DataTemplate&gt;\n\n&lt;local:ExtendedListView ContainerContentChanging=\"OnMyListViewContainerContentChanging\" \n                        ItemTemplate=\"{StaticResource MyItemTemplate}\" \n                        ItemsSource=\"{Binding Groups}\" \/&gt;\n<\/code><\/pre>\n<hr>\n<h2>Bonus<\/h2>\n<p>Noticed the <code>ExtendedListView<\/code> control is subscribing to an event called <code>ContainerContentChanging<\/code>? This is the place where you can create implicit offset animations for your items to make layout changes more interesting.<\/p>\n<hr>\n<pre><code>    private void OnMyListViewContainerContentChanging(ListViewBase sender, ContainerContentChangingEventArgs args)\n    {\n        var containerVisual = ElementCompositionPreview.GetElementVisual(args.ItemContainer);\n\n        if (args.InRecycleQueue)\n        {\n            containerVisual.ImplicitAnimations = null;\n        }\n        else\n        {\n            \/\/ EnableImplicitAnimation() is available at\n            \/\/ https:\/\/github.com\/JustinXinLiu\/Continuity\/blob\/0015a96897c138e09d8604267df46da936b66838\/Continuity\/Extensions\/CompositionExtensions.Implicit.cs#L144\n            containerVisual.EnableImplicitAnimation(VisualPropertyType.Offset, 400.0f);\n        }\n    }\n<\/code><\/pre>\n<hr>\n<p>Outcome<br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif\" alt=\"enter image description here\"><\/a><\/p>\n<p>Hope this helps!<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">1<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Possible Solution 1 You can have two data templates which share some UI, and one has some more elements than the other. The issue you will have is how to update to a different template on click on the fly. I recently answered a question here which solves this issue by subscribing to the &#8230; <a title=\"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\" aria-label=\"More on [Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[324,1741,1139],"class_list":["post-21604","post","type-post","status-publish","format-standard","hentry","category-solved","tag-c","tag-uwp","tag-xaml"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Possible Solution 1 You can have two data templates which share some UI, and one has some more elements than the other. The issue you will have is how to update to a different template on click on the fly. I recently answered a question here which solves this issue by subscribing to the ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-14T06:03:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does\",\"datePublished\":\"2022-11-14T06:03:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\"},\"wordCount\":355,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif\",\"keywords\":[\"c++\",\"uwp\",\"xaml\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\",\"name\":\"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif\",\"datePublished\":\"2022-11-14T06:03:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does - JassWeb","og_description":"[ad_1] Possible Solution 1 You can have two data templates which share some UI, and one has some more elements than the other. The issue you will have is how to update to a different template on click on the fly. I recently answered a question here which solves this issue by subscribing to the ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/","og_site_name":"JassWeb","article_published_time":"2022-11-14T06:03:01+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does","datePublished":"2022-11-14T06:03:01+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/"},"wordCount":355,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif","keywords":["c++","uwp","xaml"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/","url":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/","name":"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif","datePublished":"2022-11-14T06:03:01+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-How-can-I-change-the-contents-of-the-ListView.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-how-can-i-change-the-contents-of-the-listview-itemuwp-that-is-clicked-like-mail-app-does\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] How can I change the contents of the ListView item(UWP) that is clicked? Like Mail App does"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/21604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=21604"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/21604\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=21604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=21604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=21604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}