DebugConverter - markjulmar/xamu-infrastructure GitHub Wiki

DebugConverter

This value converter can be used to debug bindings by displaying the source and target information. It also implements IMarkupExtension which means it can be created inline with the binding vs. storing as a resource.

Note: You should not leave these in production code, use this value converter for debugging only.

Example

This will output: Convert: Value=blah, TargetType=string, Parameter=, Culture=en-US to the debug console.

<Label xmlns:cvt="clr-namespace:XamarinUniversity.Converters;assembly=XamU.Infrastructure"
   Text="{Binding SomeText, Converter={cvt:DebugConverter}}" ... />