🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Parsed/AsString
This page was created by PageReplicator on 2025-09-01. Last edited by PageReplicator on 2025-09-01.

Template:Notice



About[<a href="/index.php?title=Documentation:AsString&veaction=edit&section=1" class="mw-editsection-visualeditor" title="Edit section: About" data-bs-title="Documentation:AsString">edit</a> | <a href="/index.php?title=Documentation:AsString&action=edit&section=1" title="Edit section: About" data-bs-title="Documentation:AsString">edit source</a>]

This article describes how to use <AsString> in ViewModels, instead of the object.asString operator.

Deprecation[<a href="/index.php?title=Documentation:AsString&veaction=edit&section=2" class="mw-editsection-visualeditor" title="Edit section: Deprecation" data-bs-title="Documentation:AsString">edit</a> | <a href="/index.php?title=Documentation:AsString&action=edit&section=2" title="Edit section: Deprecation" data-bs-title="Documentation:AsString">edit source</a>]

For all but actions, this logic has been replaced with <a href="/Documentation:Databind_labels_in_ViewModels" title="Documentation:Databind labels in ViewModels" data-bs-title="Documentation:Databind_labels_in_ViewModels">Databind labels in ViewModels</a>.

Description[<a href="/index.php?title=Documentation:AsString&veaction=edit&section=3" class="mw-editsection-visualeditor" title="Edit section: Description" data-bs-title="Documentation:AsString">edit</a> | <a href="/index.php?title=Documentation:AsString&action=edit&section=3" title="Edit section: Description" data-bs-title="Documentation:AsString">edit source</a>]

In many situations, you may want to further detail action names or constraint messages. You can do this by mixing in <AsString> in the presentation or message.

This is described in this article: <a target="_blank" rel="nofollow noreferrer noopener" class="external free" href="http://www.capableobjects.com/2013/01/09/action-names/">http://www.capableobjects.com/2013/01/09/action-names/</a>

Note that the <AsString> is used as a pattern to replace and as such, it is case-sensitive.

In Fat-Client WPF, we recently added a way to make the placed Action Buttons in ViewModels bound: <Column:SomeName> in the Presentation of a placed Action button will be interpreted as "Look for ViewModel Column on the same level with name=SomeName" and bind the presentation of the button to this.