AsString
No edit summary
No edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
===== About =====
===== About =====
This article talks about using '''<AsString>''' in viewmodels, not the '''object.asString''' operator
This article describes how to use '''<AsString>''' in ViewModels, instead of the '''object.asString''' operator.


===== Deprecation =====
===== Deprecation =====
For all but actions - this logic has been replaced with [[Databind labels in ViewModels]]
For all but actions, this logic has been replaced with [[Documentation:Databind labels in ViewModels|Databind labels in ViewModels]].


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


This is described in this article: http://www.capableobjects.com/2013/01/09/action-names/
This is described in this article: http://www.capableobjects.com/2013/01/09/action-names/


Note that the <AsString> is used as pattern to replace and as such it is case-sensitive.
Note that the <code><AsString></code> 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 same level with name=SomeName" and bind the presentation of the button to this.
In Fat-Client WPF, we recently added a way to make the placed Action Buttons in ViewModels bound: <code><Column:SomeName></code> 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.
[[Category:View Model]]
[[Category:View Model]]
[[Category:ViewModel Editor]]
{{Edited|July|12|2025}}

Latest revision as of 05:53, 21 January 2025

This page was created by Hans.karlsen@mdriven.net on 2017-04-05. Last edited by Stephanie@mdriven.net on 2025-01-21.
About

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

Deprecation

For all but actions, this logic has been replaced with Databind labels in ViewModels.

Description

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: http://www.capableobjects.com/2013/01/09/action-names/

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.