Hi All,
I have a question regarding the use of a specific UI page so I may understand its associated structure if anyone can assist.
The ArticleTitlePage has a listview as follows:
<listView:SfListView
x:Name="SfListView"
Grid.Row="1"
Margin="8"
AutoFitMode="Height"
HeaderTemplate="{StaticResource HeaderView}"
HorizontalOptions="FillAndExpand"
ItemSpacing="8"
ItemTemplate="{StaticResource HorizontalArticleView}"
ItemsSource="{Binding LatestStories}"
SelectionBackgroundColor="Transparent"
TapCommand="{Binding ItemSelectedCommand}"
VerticalOptions="FillAndExpand">
<!-- Layout to customize no. of columns in SfListView -->
<listView:SfListView.LayoutManager>
<listView:GridLayout x:Name="GridLayout" SpanCount="{OnIdiom Phone=2, Tablet=3, Desktop=5}" />
</listView:SfListView.LayoutManager>
</listView:SfListView>
Its template is bound with a data set of 'LatestStories' which includes 'Name', 'Author', 'Date'.. etc.
I wish to retrieve a selected value back (ie. Author) when it is tapped/selected but cannot figure out how to do this despite some research.
The ViewModel includes the following method which fires successfully on tap:
/// Invoked when an item is selected.
private void ItemSelected(object obj)
{
// Do something
}
Appreciate your help and thanks in advance.
Cheers
Alex