Xamarin.forms: GTK: ListView entries are handled as XML internally; this conflicts with the other platforms

Created on 26 Aug 2018  路  4Comments  路  Source: xamarin/Xamarin.Forms

Description

As ListView string items are handled as XML, illegal characters for XML will not render. This is fine but is incompatible with the other platforms.

Of instance strings with < > etc won't be rendered and generate a Gtk-WARNING as they should be &lt; &gt; etc

This is contrary to the other platforms so I would label it a bug.

Steps to Reproduce

  1. Create a ListView with an item "< Back" in Platform.GTK
  2. Run application

Expected Behavior

A row showing "< Back" rendered and clickable.

Actual Behavior

An empty row "" rendered and clickable.

Basic Information

  • Version with issue: 3.1.0.697729 of Xamarin.Forms.Platform.GTK
  • Last known good version: do not know
  • IDE: Visual Studio 15.6.0
  • Platform Target Frameworks:

    • GTK: 3.1.0.697729

  • Affected Devices: Windows 10, Linux

Screenshots

Reproduction Link

gtk bug

All 4 comments

It is the Pango markup (excuse my ignorance); it does behave completely difference than other platforms so it would probably be better to switch that off if possible.

I can take a look. Thanks for the feedback.

I reproduce the bug: Issue3663.zip

Was this page helpful?
0 / 5 - 0 ratings