AsString
No edit summary
No edit summary
Line 1: Line 1:
'''NOTE:''' For all but actions - this logic has been replaced with [[Databind labels in ViewModels]]
===== About =====
This article talks about using '''<AsString>''' in viewmodels, not the '''object.asString''' operator


===== Deprecation =====
For all but actions - this logic has been replaced with [[Databind labels in ViewModels]]
===== 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 we want to further detail action names or constraint messages. You can do this by mixing in  <AsString> in the presentation or message.



Revision as of 14:25, 16 July 2022

About

This article talks about using <AsString> in viewmodels, not the object.asString operator

Deprecation

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

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.

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.

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.

This page was edited 84 days ago on 02/10/2024. What links here