こんにちは、以下の問題に対処する必要があります。画像とその境界線を含むグリッドを持つリストビューを使用しています。以下のXamlコードを確認してください
<ListView x:Name="listview1" MinWidth="250" MaxWidth="250" SelectionChanged="listview1_SelectionChanged_1"
IsItemClickEnabled="True">
<ListView.ItemTemplate>
<DataTemplate>
<Grid Height="230" Width="220">-->
<Border x:Name="border" CornerRadius="20" BorderBrush="#C6A92F" BorderThickness="4" Width="220" Height="200">
<Image x:Name="propImage" Source="{Binding}" Height="200" Width="180"/>
</Border>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>`
コードビハインドから画像ソースをバインドしています。
私のクエリは、selectedItem の画像を取得する方法です。