'How to use item self as parameter in databind inner method

        <ListView
            x:Name="List"
            ItemsSource="{x:Bind itemlist}"
            SelectionMode="None">
            <ListView.ItemTemplate>
                <DataTemplate x:DataType="x:String">
                    <RelativePanel HorizontalAlignment="Stretch">
                        <TextBlock
                            x:Name="str"
                            HorizontalAlignment="Left"
                            RelativePanel.AlignLeftWithPanel="True"
                            Text="{x:Bind /* the method i want to use here */ }" />
                    </RelativePanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>

To use method in DataTemplate,it seems that the method requires at least a parameter that was the property of databind item . However, is there any way to use the method that use the item self rather than its property to work?(not ValueConverter)



Solution 1:[1]

Text="{Binding}" or Text="{Binding.}"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sir Rufo