<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MVVM on DVLUP</title><link>/en/tags/mvvm/</link><description>Recent content in MVVM on DVLUP</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Tue, 16 Apr 2019 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/mvvm/index.xml" rel="self" type="application/rss+xml"/><item><title>Talk to the View</title><link>/en/blog/2019.04.16-talk-to-the-view/</link><pubDate>Tue, 16 Apr 2019 00:00:00 +0000</pubDate><guid>/en/blog/2019.04.16-talk-to-the-view/</guid><description>&lt;p&gt;There are many scenarios where a UI component might not have a Command or bindable property available for certain features that you need to access from the view model. There is a simple, but powerful, thing you can do to allow this and not break MVVM or testing capability, leverage the Interface.&lt;/p&gt;&#10;&lt;h2 id="scenario"&gt;Scenario&lt;/h2&gt;&#10;&lt;p&gt;Let&amp;rsquo;s imagine the scenario where we have a special ListView control that has a &lt;strong&gt;HighlightItem&lt;/strong&gt; method that can only be called with a direct reference to that control. There isn&amp;rsquo;t a Command or DependencyProperty (aka BindableProperty in Xamarin.Forms) alternative, so it has to be done in the code behind.&lt;/p&gt;</description></item></channel></rss>