<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Modern-Commanding on It Must Be Code!</title><link>https://itmustbecode.com/tags/modern-commanding/</link><description>Recent content in Modern-Commanding on It Must Be Code!</description><generator>Hugo</generator><language>en-CA</language><lastBuildDate>Sun, 09 Mar 2025 19:56:52 +0000</lastBuildDate><atom:link href="https://itmustbecode.com/tags/modern-commanding/feed.xml" rel="self" type="application/rss+xml"/><item><title>Model-Driven App Trick : How to Hide a Ribbon Button when the Form is Dirty</title><link>https://itmustbecode.com/model-driven-app-trick-how-to-hide-a-ribbon-button-when-the-form-is-dirty/</link><pubDate>Sun, 09 Mar 2025 19:56:52 +0000</pubDate><guid isPermaLink="false">https://itmustbecode.com/model-driven-app-trick-how-to-hide-a-ribbon-button-when-the-form-is-dirty/</guid><description>&lt;p&gt;I recently encountered a requirement on a model-driven app project to display a custom ribbon button only when the form had &lt;strong&gt;no unsaved changes&lt;/strong&gt;—in other words, the button needed to be hidden whenever the form was &lt;strong&gt;dirty&lt;/strong&gt;.&lt;/p&gt;
&lt;figure&gt;&lt;img src="./image.png"loading="lazy"&gt;&lt;/figure&gt;
&lt;p&gt;While the solution is quite simple, I thought it would be a good idea to write about it and put all the pieces of the puzzle together. I also explore and provide a solution for the 2 current button extension models—the &lt;strong&gt;Classic Ribbon&lt;/strong&gt; and the &lt;strong&gt;Modern&lt;/strong&gt; commanding .&lt;/p&gt;</description></item></channel></rss>