Converting Unbound Numbers

Hi folks, this is a quick question.

Is there a way to apply a converter/converter group to a number that is unbound?

For instance, I want to put a Margin on a List but only if there are number entries.

So I made a converter group that consists of a

  • ListToLength

  • Clamp - formula: min(max({Input},0.0),1.0)

  • Round (to no decimals)

  • Multiply (sizeOfMargin)


I can define the size of the padding in the converter itself, but that tucks away the info a bit. And makes the converter not very reusable (you need to duplicate it, and set a new number if you'd like to use the same logic and apply this to different places with different parameters)


Putting the size of padding as a viewmodel property to bind, seems like overkill. and is a DesignTime decision, not a Run-time decision.

Like here, it would be nice If I could add a converter directly to this rather than having to bind the number to a property and then place the converter

I just would like to define the Margin size in the cell itself.. Maybe that's a feature request. /