I wrote a couple of user bindings to the model now and realized that I was trapped by relying on magic strings, for example:
if (bindingContext.ValueProvider.ContainsPrefix("PaymentKey"))
{
paymentKey = bindingContext.ValueProvider.GetValue("PaymentKey").AttemptedValue;
}
I would like to use the expression for strong input of prefix names, but I can not understand how I will be grateful for the help.
Thank.
source
share