Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code> &lt;ListBox ItemsSource="{Binding Items}"&gt; &lt;ListBox.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;Grid Margin="5"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="50"/&gt; &lt;ColumnDefinition Width="10"/&gt; &lt;ColumnDefinition Width="Auto"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Image Source="{Binding Image}"/&gt; &lt;Grid Grid.Column="2"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="*"/&gt; &lt;RowDefinition Height="*"/&gt; &lt;RowDefinition Height="*"/&gt; &lt;/Grid.RowDefinitions&gt; &lt;TextBlock Text="{Binding Name}"/&gt; &lt;TextBlock Grid.Row="1" Text="{Binding Desc}"/&gt; &lt;TextBlock Grid.Row="2" Text="{Binding Notes}"/&gt; &lt;/Grid&gt; &lt;/Grid&gt; &lt;/DataTemplate&gt; &lt;/ListBox.ItemTemplate&gt; &lt;/ListBox&gt; </code></pre> <hr> <pre><code>public partial class ImageListBox : INotifyPropertyChanged { private ObservableCollection&lt;Item&gt; _items; public ObservableCollection&lt;Item&gt; Items { get { return _items; } set { _items = value; OnPropertyChanged("Items"); } } public ImageListBox() { DataContext = this; Items = new ObservableCollection&lt;Item&gt;(new List&lt;Item&gt; { new Item { Image = "Images/_(1).png" , Desc = "Desc1",Name = "Name1",Notes = "Notes1"}, new Item { Image = "Images/_(2).png" , Desc = "Desc2",Name = "Name2",Notes = "Notes2"}, new Item { Image = "Images/_(3).png" , Desc = "Desc3",Name = "Name3",Notes = "Notes3"}, new Item { Image = "Images/_(4).png" , Desc = "Desc4",Name = "Name4",Notes = "Notes4"}, new Item { Image = "Images/_(5).png" , Desc = "Desc5",Name = "Name5",Notes = "Notes5"}, }); InitializeComponent(); } public event PropertyChangedEventHandler PropertyChanged; public void OnPropertyChanged(String propertyName) { if (PropertyChanged != null) PropertyChanged(this,new PropertyChangedEventArgs(propertyName)); } } public class Item { public String Image { get; set; } public String Name { get; set; } public String Desc { get; set; } public String Notes { get; set; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload