-
Notifications
You must be signed in to change notification settings - Fork 0
DebugConverter
Mark Smith edited this page Aug 26, 2016
·
2 revisions
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.
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}}" ... />